Package org.jgroups.protocols
Class UDP.PacketReceiver
- java.lang.Object
-
- org.jgroups.protocols.UDP.PacketReceiver
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Runnable
- Enclosing class:
- UDP
public class UDP.PacketReceiver extends java.lang.Object implements java.lang.Runnable, java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description PacketReceiver(java.net.DatagramSocket socket, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
run()
void
start()
void
stop()
java.lang.String
toString()
-
-
-
Method Detail
-
start
public void start()
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
stop
public void stop()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-