Class 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
    • 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 class ConnectionAcceptor
      • 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 class ConnectionAcceptor
      • 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 class ConnectionAcceptor
        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 class ConnectionAcceptor
        Parameters:
        configuration - The configuration for connections to be accepted (cannot be null).