mirrormap.nio
Interface IConnectionEndPointReceiver

All Superinterfaces:
IDestroyable

public interface IConnectionEndPointReceiver
extends IDestroyable

Handles data received from a remote IConnectionEndPoint. Implementations should be efficient as the receive(byte[]) method may tie up the thread handling the socket receive operations.

There should only be 1 receiver instance per end point.

Author:
Ramon Servadei

Nested Class Summary
static interface IConnectionEndPointReceiver.IFactory
          Factory that creates IConnectionEndPointReceiver instances
 
Method Summary
 void receive(byte[] data)
          Handle data received from the remote end point.
 void setEndPointConnection(IConnectionEndPoint connectionEndPoint)
          The end point this receiver is associated with.
 
Methods inherited from interface mirrormap.lifecycle.IDestroyable
destroy
 

Method Detail

receive

void receive(byte[] data)
Handle data received from the remote end point.

Parameters:
data - the data

setEndPointConnection

void setEndPointConnection(IConnectionEndPoint connectionEndPoint)
The end point this receiver is associated with.

Parameters:
connectionEndPoint - the end point this receiver is for


Copyright © 2010. All Rights Reserved.