Package org.apache.log4j.receivers.net
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 java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
If true, then delay on next iteration.(package private) boolean
Interruption status.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
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
-
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