|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDuplexInputChannel
Duplex input channel which can receive messages from the duplex output channel and send response messages.
Method Summary | |
---|---|
void |
disconnectResponseReceiver(java.lang.String responseReceiverId)
Disconnects the output channel. |
java.lang.String |
getChannelId()
Returns address of this duplex input channel. |
IThreadDispatcher |
getDispatcher()
Returns dispatcher that defines the threading model for raising events. |
boolean |
isListening()
Returns true if the input channel is listening. |
Event<DuplexChannelMessageEventArgs> |
messageReceived()
The event is raised when a message is received. |
Event<ResponseReceiverEventArgs> |
responseReceiverConnected()
The event is raised when an output channel opened the connection. |
Event<ResponseReceiverEventArgs> |
responseReceiverDisconnected()
The event is raised when an output channel closed the connection. |
void |
sendResponseMessage(java.lang.String responseReceiverId,
java.lang.Object message)
Sends a message to a connected output channel. |
void |
startListening()
Starts listening to messages. |
void |
stopListening()
Stops listening to messages. |
Method Detail |
---|
Event<ResponseReceiverEventArgs> responseReceiverConnected()
Event<ResponseReceiverEventArgs> responseReceiverDisconnected()
Event<DuplexChannelMessageEventArgs> messageReceived()
java.lang.String getChannelId()
void startListening() throws java.lang.Exception
java.lang.Exception
void stopListening()
boolean isListening()
void sendResponseMessage(java.lang.String responseReceiverId, java.lang.Object message) throws java.lang.Exception
...
anInputChannel.sendResponseMessage("*", "Hello.");
...
responseReceiverId
- Identifies the response receiver. The identifier comes with received messages.
If the value is * then the input channel sends the message to all connected output channels.message
- response message
java.lang.Exception
void disconnectResponseReceiver(java.lang.String responseReceiverId)
responseReceiverId
- Identifies output channel which shall be disconnected.
java.lang.Exception
IThreadDispatcher getDispatcher()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |