public abstract static class MessageBusBinding.FlushContext extends Object
Message bus binding and channel implementations have the prerogative to
buffer outbound messages to optimize transmission throughput. Bindings
support the 'flush' primitive that forces the transmission of buffered
messages. A binding can be flushed using one of the following flush
modes:
- synchronous
- non-blocking
- asynchronous
When the user sends message using MessageChannel.sendMessage(com.neeve.sma.MessageView, java.util.Properties, com.neeve.sma.MessageBusBinding.FlushContext, int)
or flushes a binding using MessageBusBinding.flush(com.neeve.sma.MessageBusBinding.FlushContext)
, it needs to specify the flush
mode to use for the flush. Each flush mode is represented by a flush
context that holds flush mode specific information to be returned to
the user. This class is the base class for all flush contexts.
Modifier and Type | Class and Description |
---|---|
static class |
MessageBusBinding.FlushContext.FlushMode
Flush modes.
|
Modifier and Type | Field and Description |
---|---|
MessageBusBinding.FlushContext.FlushMode |
flushMode
The flush mode.
|
public final MessageBusBinding.FlushContext.FlushMode flushMode
public abstract MessageBusBinding.FlushContext reset()
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.