Package org.jivesoftware.openfire.net
Class SocketAcceptThread
- java.lang.Object
-
- java.lang.Thread
-
- org.jivesoftware.openfire.net.SocketAcceptThread
-
- All Implemented Interfaces:
Runnable
@Deprecated public class SocketAcceptThread extends Thread
Deprecated.Old, pre NIO / MINA code. Should not be used as NIO offers better performanceImplements a network front end with a dedicated thread reading each incoming socket. Blocking and non-blocking modes are supported. By default blocking mode is used. Use the xmpp.socket.blocking system property to change the blocking mode. Restart the server after making changes to the system property.- Author:
- Gaston Dombiak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description SocketAcceptThread(int tcpPort, InetAddress bindInterface, boolean directTLS)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.jivesoftware.openfire.net.SocketAcceptingModegetAcceptingMode()Deprecated.The Socket Accepting Mode for this thread.intgetPort()Deprecated.Retrieve the port this server socket is bound to.booleanisDirectTLS()Deprecated.Returns if the port expects sockets to be encrypted immediately (direct TLS).voidrun()Deprecated.About as simple as it gets.voidshutdown()Deprecated.Unblock the thread and force it to terminate.-
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
-
-
-
-
Constructor Detail
-
SocketAcceptThread
public SocketAcceptThread(int tcpPort, InetAddress bindInterface, boolean directTLS) throws IOExceptionDeprecated.- Throws:
IOException
-
-
Method Detail
-
getPort
public int getPort()
Deprecated.Retrieve the port this server socket is bound to.- Returns:
- the port the socket is bound to.
-
isDirectTLS
public boolean isDirectTLS()
Deprecated.Returns if the port expects sockets to be encrypted immediately (direct TLS).- Returns:
- true when direct TLS is expected, otherwise false.
-
shutdown
public void shutdown()
Deprecated.Unblock the thread and force it to terminate.
-
run
public void run()
Deprecated.About as simple as it gets. The thread spins around an accept call getting sockets and handing them to the SocketManager.
-
getAcceptingMode
public org.jivesoftware.openfire.net.SocketAcceptingMode getAcceptingMode()
Deprecated.The Socket Accepting Mode for this thread. This is exposed for unit testing purposes. It is unlikely that this should be used elsewhere.
-
-