public interface MessageLink
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection used by this message handler.
|
EventDispatcher |
getDispatcher()
Deprecated.
|
EventHandler<? super MessageEvent> |
getEventHandler()
Deprecated.
|
EventProcessor<MessageEvent> |
getEventProcessor()
Deprecated.
|
NodeDetails |
getLinkedTo() |
LinkStatistics |
getRecvStats() |
LinkStatistics |
getSendStats() |
boolean |
isAlive() |
boolean |
isClient() |
void |
sendMessage(MessageEvent sendMsg)
Send a message to the connected destination.
|
<M extends MessageEvent> |
sendMessage(MessageEvent sendMsg,
java.lang.Class<M> respType)
Send a message to the connected destination, and get a reply task.
|
void |
setEventHandler(EventHandler<? super MessageEvent> inHandler)
Set the event handler that incoming events are passed to.
|
void |
setEventProcessor(EventProcessor<MessageEvent> inProcess)
Set the event handler that incoming events are passed to.
|
NodeDetails getLinkedTo()
boolean isAlive()
boolean isClient()
LinkStatistics getRecvStats()
LinkStatistics getSendStats()
@Deprecated EventDispatcher getDispatcher()
@Deprecated EventHandler<? super MessageEvent> getEventHandler()
void setEventHandler(EventHandler<? super MessageEvent> inHandler) throws LinkException
LinkException@Deprecated EventProcessor<MessageEvent> getEventProcessor()
void setEventProcessor(EventProcessor<MessageEvent> inProcess) throws LinkException
LinkExceptionvoid sendMessage(MessageEvent sendMsg) throws LinkException
sendMsg - - The message to send.java.io.IOExceptionLinkException<M extends MessageEvent> Task<M> sendMessage(MessageEvent sendMsg, java.lang.Class<M> respType) throws LinkException
sendMsg - - The message to send.respType - - The class of the expected response message.java.io.IOExceptionLinkExceptionvoid close()
close in interface java.lang.AutoCloseable