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
ConnectionHandler that knows which subclass of
StanzaHandler
should
be created and how to build and configure a NettyConnection
.- Author:
- Alex Gidman
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SystemProperty<Boolean>
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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the time that a connection can be idle before being closed.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
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelWritabilityChanged
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
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 Details
-
NettyComponentConnectionHandler
-
-
Method Details
-
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
- Overrides:
toString
in classNettyConnectionHandler
-