public interface

NioEndpoint

com.ericsson.research.transport.NioEndpoint
Known Indirect Subclasses

Summary

Public Methods
abstract boolean canAccept()
abstract NioEndpoint createAcceptChild()
Create a child that can be used for accepting.
abstract SelectionKey getKey()
abstract void notifyAccepted(NioEndpoint endpoint)
abstract void notifyClosed()
abstract void notifyConnected()
abstract void notifyError(Exception e)
abstract void receive(byte[] data, int size)
abstract void setNioManager(NioManager nioManager, SelectionKey key)

Public Methods

public abstract boolean canAccept ()

public abstract NioEndpoint createAcceptChild ()

Create a child that can be used for accepting.

Returns
  • A newly created NioEndpoint object capable of processing replies from this NioManager
Throws
UnsupportedOperationException if this NioEndpoint canAccept() returns false

public abstract SelectionKey getKey ()

public abstract void notifyAccepted (NioEndpoint endpoint)

public abstract void notifyClosed ()

public abstract void notifyConnected ()

public abstract void notifyError (Exception e)

public abstract void receive (byte[] data, int size)

public abstract void setNioManager (NioManager nioManager, SelectionKey key)