Package org.jivesoftware.openfire.nio
Class NettySessionInitializer
- java.lang.Object
-
- org.jivesoftware.openfire.nio.NettySessionInitializer
-
public class NettySessionInitializer extends Object
Initialises an outgoing netty channel for outbound S2S
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Duration>
GRACEFUL_SHUTDOWN_QUIET_PERIOD
The inactivity duration after which a Netty executor can be shutdown gracefully.static SystemProperty<Duration>
GRACEFUL_SHUTDOWN_TIMEOUT
The maximum amount of time to wait until a Netty executor is shutdown regardless if a task was submitted during the quiet period.
-
Constructor Summary
Constructors Constructor Description NettySessionInitializer(DomainPair domainPair, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<LocalSession>
init(ConnectionListener listener)
void
stop()
String
toString()
-
-
-
Field Detail
-
GRACEFUL_SHUTDOWN_QUIET_PERIOD
public static final SystemProperty<Duration> GRACEFUL_SHUTDOWN_QUIET_PERIOD
The inactivity duration after which a Netty executor can be shutdown gracefully.
-
GRACEFUL_SHUTDOWN_TIMEOUT
public static final SystemProperty<Duration> GRACEFUL_SHUTDOWN_TIMEOUT
The maximum amount of time to wait until a Netty executor is shutdown regardless if a task was submitted during the quiet period.
-
-
Constructor Detail
-
NettySessionInitializer
public NettySessionInitializer(DomainPair domainPair, int port)
-
-
Method Detail
-
init
public Future<LocalSession> init(ConnectionListener listener)
-
stop
public void stop()
-
-