Class MulticastClient
java.lang.Object
java.lang.Thread
com.bytedesk.core.cluster.udp.multicast.MulticastClient
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected InetSocketAddressprotected MulticastSocketFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private DatagramPacketresultPacket(DatagramPacket receivePacket) voidrun()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
socket
-
buf
protected byte[] buf -
groupAddress
-
-
Constructor Details
-
MulticastClient
- Throws:
IOException
-
-
Method Details
-
sayHello
- Throws:
IOException
-
resultPacket
-
run
public void run() -
close
public void close()
-