Package org.jivesoftware.openfire.spi
Class LegacyConnectionAcceptor
- java.lang.Object
-
- org.jivesoftware.openfire.spi.ConnectionAcceptor
-
- org.jivesoftware.openfire.spi.LegacyConnectionAcceptor
-
@Deprecated public class LegacyConnectionAcceptor extends ConnectionAcceptor
Deprecated.Used only for S2S, which should be be ported to NIO.A connection acceptor that employs the legacy, pre-MINA/NIO socket implementation of Openfire.- Author:
- Guus der Kinderen, guus.der.kinderen@gmail.com
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Duration>
STARTUP_RETRY_DELAY
Deprecated.-
Fields inherited from class org.jivesoftware.openfire.spi.ConnectionAcceptor
configuration
-
-
Constructor Summary
Constructors Constructor Description LegacyConnectionAcceptor(ConnectionConfiguration configuration)
Deprecated.Constructs a new instance which will accept new connections based on the provided configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
isIdle()
Deprecated.Determines if this instance is currently in a state where it is actively serving connections.void
reconfigure(ConnectionConfiguration configuration)
Deprecated.Reloads the acceptor configuration, without causing a disconnect of already established connections.void
start()
Deprecated.Starts this acceptor by binding the socket acceptor.void
stop()
Deprecated.Stops this acceptor by unbinding the socket acceptor.
-
-
-
Field Detail
-
STARTUP_RETRY_DELAY
public static final SystemProperty<Duration> STARTUP_RETRY_DELAY
Deprecated.
-
-
Constructor Detail
-
LegacyConnectionAcceptor
public LegacyConnectionAcceptor(ConnectionConfiguration configuration)
Deprecated.Constructs a new instance which will accept new connections based on the provided configuration.The provided configuration is expected to be immutable. ConnectionAcceptor instances are not expected to handle changes in configuration. When such changes are to be applied, an instance is expected to be replaced.
Newly instantiated ConnectionAcceptors will not accept any connections before
start()
is invoked.- Parameters:
configuration
- The configuration for connections to be accepted (cannot be null).
-
-
Method Detail
-
start
public void start()
Deprecated.Starts this acceptor by binding the socket acceptor. When the acceptor is already started, a warning will be logged and the method invocation is otherwise ignored.- Specified by:
start
in classConnectionAcceptor
-
stop
public void stop()
Deprecated.Stops this acceptor by unbinding the socket acceptor. Does nothing when the instance is not started.- Specified by:
stop
in classConnectionAcceptor
-
isIdle
public boolean isIdle()
Deprecated.Description copied from class:ConnectionAcceptor
Determines if this instance is currently in a state where it is actively serving connections.- Specified by:
isIdle
in classConnectionAcceptor
- Returns:
- false when this instance is started and is currently being used to serve connections (otherwise true)
-
reconfigure
public void reconfigure(ConnectionConfiguration configuration)
Deprecated.Description copied from class:ConnectionAcceptor
Reloads the acceptor configuration, without causing a disconnect of already established connections. A best-effort reload will be attempted. Configuration changes that require a restart of connections, such as the bind-address and port, will not be applied. The configuration that's provided will replace the existing configuration. A restart of the connection acceptor after this method was invoked will apply all configuration changes.- Specified by:
reconfigure
in classConnectionAcceptor
- Parameters:
configuration
- The configuration for connections to be accepted (cannot be null).
-
-