Package org.jivesoftware.openfire.nio
Class NettyMultiplexerConnectionHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<String>
-
- org.jivesoftware.openfire.nio.NettyConnectionHandler
-
- org.jivesoftware.openfire.nio.NettyMultiplexerConnectionHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class NettyMultiplexerConnectionHandler extends NettyConnectionHandler
ConnectionHandler that knows which subclass ofStanzaHandler
should be created and how to build and configure aNettyConnection
.- Author:
- Alex Gidman
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Boolean>
BACKUP_PACKET_DELIVERY_ENABLED
Enable / disable backup delivery of stanzas to other connections in the same connection manager when a stanza failed to be delivered on a multiplexer (connection manager) connection.-
Fields inherited from class org.jivesoftware.openfire.nio.NettyConnectionHandler
configuration, CONNECTION, IDLE_FLAG, PARSER_CACHE, READ_BYTES, sslInitDone, WRITTEN_BYTES
-
-
Constructor Summary
Constructors Constructor Description NettyMultiplexerConnectionHandler(ConnectionConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
getMaxIdleTime()
Returns the time that a connection can be idle before being closed.String
toString()
-
Methods inherited from class org.jivesoftware.openfire.nio.NettyConnectionHandler
channelRead0, channelUnregistered, exceptionCaught, handlerAdded, handlerRemoved, userEventTriggered
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
-
-
-
Field Detail
-
BACKUP_PACKET_DELIVERY_ENABLED
public static final SystemProperty<Boolean> BACKUP_PACKET_DELIVERY_ENABLED
Enable / disable backup delivery of stanzas to other connections in the same connection manager when a stanza failed to be delivered on a multiplexer (connection manager) connection. When disabled, stanzas that can not be delivered on the connection are discarded.
-
-
Constructor Detail
-
NettyMultiplexerConnectionHandler
public NettyMultiplexerConnectionHandler(ConnectionConfiguration configuration)
-
-
Method Detail
-
getMaxIdleTime
public Duration getMaxIdleTime()
Description copied from class:NettyConnectionHandler
Returns the time that a connection can be idle before being closed.- Specified by:
getMaxIdleTime
in classNettyConnectionHandler
- Returns:
- the time a connection can be idle.
-
toString
public String toString()
- Overrides:
toString
in classNettyConnectionHandler
-
-