private class AbstractLookupDiscovery.ResponseListener extends Thread
Only 1 instance of this thread is run.
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private boolean |
interrupted
True if thread has been interrupted
|
ServerSocket |
serv
Server socket for accepting connections
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ResponseListener() |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Return the local port of the socket
|
void |
interrupt() |
boolean |
isInterrupted()
Accessor method that returns the
interrupted flag. |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public final ServerSocket serv
private volatile boolean interrupted
public ResponseListener() throws IOException
IOException
public boolean isInterrupted()
interrupted
flag.isInterrupted
in class Thread
public int getPort()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.