Package org.jivesoftware.openfire.nio
Class NettyComponentConnectionHandler
- 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.NettyComponentConnectionHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class NettyComponentConnectionHandler 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 the XMPP server itself when a stanza failed to be delivered on a component 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 NettyComponentConnectionHandler(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 the XMPP server itself when a stanza failed to be delivered on a component connection. When disabled, stanzas that can not be delivered on the connection are discarded.
-
-
Constructor Detail
-
NettyComponentConnectionHandler
public NettyComponentConnectionHandler(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
-
-