private final class MulticastKeepaliveHeartbeatSender.MulticastServerThread
extends java.lang.Thread
Modifier and Type | Field and Description |
---|---|
private int |
cachePeersHash |
private java.util.List |
compressedUrlListList |
private java.net.MulticastSocket |
socket |
Constructor and Description |
---|
MulticastServerThread()
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
closeSocket() |
private java.util.List |
createCachePeersPayload()
Creates a gzipped payload.
|
void |
interrupt()
Interrupts this thread.
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private java.net.MulticastSocket socket
private java.util.List compressedUrlListList
private int cachePeersHash
public final void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private java.util.List createCachePeersPayload()
public final void interrupt()
Unless the current thread is interrupting itself, which is
always permitted, the checkAccess
method
of this thread is invoked, which may cause a SecurityException
to be thrown.
If this thread is blocked in an invocation of the wait()
, wait(long)
, or wait(long, int)
methods of the Object
class, or of the Thread.join()
, Thread.join(long)
, Thread.join(long,int)
, Thread.sleep(long)
, or Thread.sleep(long,int)
,
methods of this class, then its interrupt status will be cleared and it
will receive an InterruptedException
.
If this thread is blocked in an I/O operation upon an interruptible
channel
then the channel will be closed, the thread's interrupt
status will be set, and the thread will receive a
ClosedByInterruptException
.
If this thread is blocked in a Selector
then the thread's interrupt status will be set and it will return
immediately from the selection operation, possibly with a non-zero
value, just as if the selector's wakeup
method were invoked.
If none of the previous conditions hold then this thread's interrupt status will be set.
interrupt
in class java.lang.Thread
java.lang.SecurityException
- if the current thread cannot modify this threadprivate void closeSocket()