org.jgroups.protocols
Class UDP_NIO.MyReceiver

java.lang.Object
  extended byorg.jgroups.protocols.UDP_NIO.MyReceiver
All Implemented Interfaces:
org.jgroups.protocols.Receiver
Enclosing class:
UDP_NIO

public static class UDP_NIO.MyReceiver
extends java.lang.Object
implements org.jgroups.protocols.Receiver


Constructor Summary
UDP_NIO.MyReceiver()
           
 
Method Summary
 void receive(java.net.DatagramPacket packet)
          Called when data has been received on a socket.
 void setConnectorTable(UDP_NIO.ConnectorTable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDP_NIO.MyReceiver

public UDP_NIO.MyReceiver()
Method Detail

setConnectorTable

public void setConnectorTable(UDP_NIO.ConnectorTable t)

receive

public void receive(java.net.DatagramPacket packet)
Description copied from interface: org.jgroups.protocols.Receiver
Called when data has been received on a socket. When the callback returns, the buffer will be reused: therefore, if buf must be processed on a separate thread, it needs to be copied. This method might be called concurrently by multiple threads, so it has to be reentrant

Specified by:
receive in interface org.jgroups.protocols.Receiver
Parameters:
packet -


Copyright ? 1998-2005 Bela Ban. All Rights Reserved.