public interface MessagingChannel extends Channel, SessionAwareChannel
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MessagingChannel.ChannelResponseListener |
BYTEARRAY_BODY_HEADER, DEFAULT_TIME_TO_LIVE, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(Consumer consumer)
Register a consumer for this channel
|
void |
addListener(MessagingChannel.ChannelResponseListener listener)
Register a listener which will be notified of messages occuring on the channel
|
ResponseMessageFuture |
disconnect(ResponseListener... listeners)
Disconnect the channel
|
boolean |
removeConsumer(Consumer consumer)
Unregister a consumer for this channel
|
void |
removeListener(MessagingChannel.ChannelResponseListener listener)
Unregister a listener which will be notified of messages occuring on the channel
|
void |
setSessionId(java.lang.String sessionId)
Set the current session id
Necessary to synchronize session ids between remoting and messaging channels, usually the remoting channel
acts as the master channel which handles authentication and session management and propagated it to other
messaging channels
|
addListener, bindStatus, getClientId, getCredentials, getDefaultTimeToLive, getId, getTransport, getTransportData, getUri, isAuthenticated, isStarted, logout, logout, onCancelled, onDisconnect, onError, onMessage, removeListener, send, setCredentials, setDefaultTimeToLive, setTransportData, start, stop, unbindStatusvoid setSessionId(java.lang.String sessionId)
setSessionId in interface SessionAwareChannelsessionId - session idvoid addConsumer(Consumer consumer)
consumer - consumerConsumerboolean removeConsumer(Consumer consumer)
consumer - consumerConsumerResponseMessageFuture disconnect(ResponseListener... listeners)
listeners - array of listener to notify when the channel is disconnectedvoid addListener(MessagingChannel.ChannelResponseListener listener)
listener - listenervoid removeListener(MessagingChannel.ChannelResponseListener listener)
listener - listener