eneter.messaging.infrastructure.attachable
Interface IAttachableDuplexOutputChannel

All Known Subinterfaces:
IDuplexBrokerClient, IDuplexChannelWrapper, IDuplexStringMessageSender, IDuplexTypedMessageSender<TResponse,TRequest>, IMultiTypedMessageSender, IRpcClient<TServiceInterface>, ISyncDuplexTypedMessageSender<TResponse,TRequest>, ISyncMultitypedMessageSender

public interface IAttachableDuplexOutputChannel

Interface for components which want to attach one IDuplexOutputChannel. Communication components implementing this interface can attach the duplex output channel and sends messages and receive response messages.


Method Summary
 void attachDuplexOutputChannel(IDuplexOutputChannel duplexOutputChannel)
          Attaches the duplex output channel and opens the connection and starts listening to response messages.
 void detachDuplexOutputChannel()
          Detaches the duplex output channel and stops listening to response messages.
 IDuplexOutputChannel getAttachedDuplexOutputChannel()
          Returns attached duplex output channel.
 boolean isDuplexOutputChannelAttached()
          Returns true if the reference to the duplex output channel is stored.
 

Method Detail

attachDuplexOutputChannel

void attachDuplexOutputChannel(IDuplexOutputChannel duplexOutputChannel)
                               throws java.lang.Exception
Attaches the duplex output channel and opens the connection and starts listening to response messages.

Parameters:
duplexOutputChannel - Duplex output channel to be attached.
Throws:
java.lang.Exception
See Also:
IDuplexOutputChannel

detachDuplexOutputChannel

void detachDuplexOutputChannel()
Detaches the duplex output channel and stops listening to response messages.

Throws:
java.lang.Exception

isDuplexOutputChannelAttached

boolean isDuplexOutputChannelAttached()
Returns true if the reference to the duplex output channel is stored.

Returns:

getAttachedDuplexOutputChannel

IDuplexOutputChannel getAttachedDuplexOutputChannel()
Returns attached duplex output channel.

See Also:
IDuplexOutputChannel