Class SocketHubReceiver.Connector
java.lang.Object
java.lang.Thread
org.apache.log4j.receivers.net.SocketHubReceiver.Connector
- All Implemented Interfaces:
Runnable
- Enclosing class:
SocketHubReceiver
The Connector will reconnect when the server becomes available
again. It does this by attempting to open a new connection every
reconnectionDelay milliseconds.
It stops trying whenever a connection is established. It will restart to try reconnect to the server when previpously open connection is droppped.
-
Nested Class Summary
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanIf true, then delay on next iteration.(package private) booleanInterruption status.Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
-
Field Details
-
interrupted
boolean interruptedInterruption status. -
doDelay
boolean doDelayIf true, then delay on next iteration.
-
-
Constructor Details
-
Connector
public Connector(boolean isReconnect) Create new instance.- Parameters:
isReconnect- true if reconnecting.
-
-
Method Details
-
run
-