Package biz.onixs.util.network
Class MulticastThreadReceiver
- java.lang.Object
-
- biz.onixs.util.network.MulticastReceiver
-
- biz.onixs.util.network.MulticastThreadReceiver
-
- All Implemented Interfaces:
IMulticastReceiver,Closeable,AutoCloseable
- Direct Known Subclasses:
MulticastFastThreadReceiver
public class MulticastThreadReceiver extends MulticastReceiver
- Author:
- vmelnyk Extends MulticastReceiver. This class is a MulticastReceiver extension, that have a Thread functionality to spawn and control aux thread that spinning MulticastReceiver.step()
-
-
Field Summary
-
Fields inherited from class biz.onixs.util.network.MulticastReceiver
PACKET_MAXSIZE
-
-
Constructor Summary
Constructors Constructor Description MulticastThreadReceiver()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closable implementationThreadgetThread()voidinterrupt()Interrupts aux thread.voidstart()Starts aux thread.
-
-
-
Constructor Detail
-
MulticastThreadReceiver
public MulticastThreadReceiver() throws IOExceptionConstructor. Creates, but doesn't starts aux daemon thread.- Throws:
IOException- If an I/O error occurs
-
-
Method Detail
-
start
public void start()
Starts aux thread. The thread is spinningMulticastReceiver.step()
-
interrupt
public void interrupt()
Interrupts aux thread.
-
getThread
public Thread getThread()
- Returns:
- reference to aux thread instance.
-
close
public void close()
Closable implementation- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classMulticastReceiver
-
-