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 int
getPort()
Deprecated.Retrieve the port this server socket is bound to.ServerPort
getServerPort()
Deprecated.Returns information about the port on which the server is listening for connections.boolean
isDirectTLS()
Deprecated.Returns if the port expects sockets to be encrypted immediately (direct TLS).void
run()
Deprecated.About as simple as it gets.void
shutdown()
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 IOException
Deprecated.- 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.
-
getServerPort
public ServerPort getServerPort()
Deprecated.Returns information about the port on which the server is listening for connections.- Returns:
- information about the port on which the server is listening for connections.
-
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.
-
-