org.apache.qpid.proton.driver
Interface Listener<C>

Type Parameters:
C - application supplied context

public interface Listener<C>

Server API.


Method Summary
 Connector<C> accept()
          Accept a connection that is pending on the listener.
 void close()
          Close the socket used by the listener.
 C getContext()
          Access the application context that is associated with the listener.
 

Method Detail

accept

Connector<C> accept()
Accept a connection that is pending on the listener.

Returns:
a new connector for the remote, or NULL on error.

getContext

C getContext()
Access the application context that is associated with the listener.

Returns:
the application context that was passed when creating this listener. See createListener(String, int, Object) and createConnector(java.nio.channels.SelectableChannel, Object)

close

void close()
           throws java.io.IOException
Close the socket used by the listener.

Throws:
java.io.IOException