public interface ChannelConnection
| Modifier and Type | Method and Description |
|---|---|
Closeable |
getCloseable()
Returns the closeable used to release resources associated with this stream.
|
<T> java.util.Optional<java.util.function.Supplier<T>> |
getDirectConnection()
Returns a supplier that provides a direct connection to the channel, which is typically a dispatcher for collocated channels or a transport API for a
binding.
|
EventStream |
getEventStream()
Returns the connection event stream.
|
int |
getSequence()
Returns the sequence this connection should receive events from a channel.
|
java.lang.String |
getTopic()
Returns the topic this connection is associated with.
|
void |
setCloseable(Closeable closeable)
Sets a closeable that can be invoked to release resources associated with this stream.
|
java.lang.String getTopic()
int getSequence()
EventStream getEventStream()
<T> java.util.Optional<java.util.function.Supplier<T>> getDirectConnection()
Closeable getCloseable()
void setCloseable(Closeable closeable)
closeable - the delegate