S
- type of message that will be sent by the producersT
- type of message that will be received by the consumerspublic interface SinkModule<S extends Message,T extends Message>
AggregationPolicy
.
If aggregation is not used, the message type sent by the producers must match
the message type received by the consumers.Modifier and Type | Method and Description |
---|---|
AggregationPolicy<S,T> |
getAggregationPolicy()
Defines how messages should be combined, and when they
should be "released".
|
AsyncPolicy |
getAsyncPolicy()
Defines how messages should be asynchronously dispatched.
|
String |
getId()
Globally unique identifier.
|
int |
getNumConsumerThreads()
The number of threads used to consume from the broker.
|
String |
marshal(T message)
Marshals the message to a string.
|
T |
unmarshal(String message)
Unmarshals the message from a string.
|
String getId()
int getNumConsumerThreads()
AggregationPolicy<S,T> getAggregationPolicy()
null
.AggregationPolicy
used to combine messages, or null
if the messages should not be combined.AsyncPolicy getAsyncPolicy()
AsyncPolicy
used when asynchronously dispatching
messages for this module.Copyright © 2017. All rights reserved.