public interface ConfigurableCodec
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_FIELD |
static java.lang.String |
SESSION_ID_FIELD |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguration(int sessionId,
NormalisedEvent configuration)
A codec may wish to support multiple configurations depending on
data being read.
|
boolean |
performsEscapingDownstream()
Whether or not the codec performs escaping downstream.
|
void |
removeConfiguration(int sessionId)
Remove configuration associated with the given id
|
static final java.lang.String DATA_FIELD
static final java.lang.String SESSION_ID_FIELD
void addConfiguration(int sessionId, NormalisedEvent configuration) throws java.io.IOException
sessionId
- the sessionID this data relates to. Important as the codec may
have configuration information based on the sessionIDconfiguration
- The normalised event containing the additional information
requiredjava.io.IOException
- if the configuration could not be added to the codecvoid removeConfiguration(int sessionId) throws java.io.IOException
sessionId
- the sessionId to remove the configuration forjava.io.IOException
boolean performsEscapingDownstream()
Submit a bug or feature
Copyright (c) 2013-2020 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.