MessageHeaderInitializer
to customize the strategy for ID and TIMESTAMP message header generation.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final IdGenerator | |
| private IdGenerator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IdGenerator | |
| public void | initHeaders(MessageHeaderAccessor
the MessageHeaderAccessor to initialize headerAccessor)Implements org. Initialize the given |
| public boolean | |
| public void | setDisableIdGeneration()
A shortcut for calling |
| public void | setEnableTimestamp(boolean enableTimestamp)
Whether to enable the automatic addition of the
|
| public void | setIdGenerator(IdGenerator idGenerator)
Configure the IdGenerator strategy to initialize |
| enableTimestamp | back to summary |
|---|---|
| private boolean enableTimestamp | |
| ID_VALUE_NONE_GENERATOR | back to summary |
|---|---|
| private static final IdGenerator ID_VALUE_NONE_GENERATOR | |
| idGenerator | back to summary |
|---|---|
| private IdGenerator idGenerator
| |
| IdTimestampMessageHeaderInitializer | back to summary |
|---|---|
| public IdTimestampMessageHeaderInitializer() | |
| getIdGenerator | back to summary |
|---|---|
| public IdGenerator getIdGenerator() Return the configured
| |
| initHeaders | back to summary |
|---|---|
| public void initHeaders(MessageHeaderAccessor headerAccessor) Implements org. Doc from org. Initialize the given
| |
| isEnableTimestamp | back to summary |
|---|---|
| public boolean isEnableTimestamp() Return whether the timestamp header is enabled or not. | |
| setDisableIdGeneration | back to summary |
|---|---|
| public void setDisableIdGeneration() A shortcut for calling | |
| setEnableTimestamp | back to summary |
|---|---|
| public void setEnableTimestamp(boolean enableTimestamp) Whether to enable the automatic addition of the
By default this property is set to false. | |
| setIdGenerator | back to summary |
|---|---|
| public void setIdGenerator(IdGenerator idGenerator) Configure the IdGenerator strategy to initialize By default this property is set to To have no ids generated at all, see | |