public class TCPPipelineFactory extends Object implements org.jboss.netty.channel.ChannelPipelineFactory
ChannelPipelineFactory
, with different encoders and decoders in its
pipeline should be used to connect to remote jetserver.Modifier and Type | Field and Description |
---|---|
private DefaultToClientHandler |
defaultToClientHandler
Used to transmit the message to
Session . |
private static MessageBufferEventDecoder |
EVENT_DECODER
Decodes incoming messages from remote jetserver to
MessageBuffer
type, puts this as the payload for an Event and passes this
Event instance to the next decoder/handler in the chain. |
private static MessageBufferEventEncoder |
EVENT_ENCODER
Decodes incoming messages from remote jetserver to
MessageBuffer
type, puts this as the payload for an Event and passes this
Event instance to the next decoder/handler in the chain. |
private static org.jboss.netty.handler.codec.frame.LengthFieldPrepender |
LENGTH_FIELD_PREPENDER
Prepends the length of transmitted message before sending to remote
jetserver.
|
Constructor and Description |
---|
TCPPipelineFactory(Session session) |
private static final org.jboss.netty.handler.codec.frame.LengthFieldPrepender LENGTH_FIELD_PREPENDER
private static final MessageBufferEventDecoder EVENT_DECODER
MessageBuffer
type, puts this as the payload for an Event
and passes this
Event
instance to the next decoder/handler in the chain.private static final MessageBufferEventEncoder EVENT_ENCODER
MessageBuffer
type, puts this as the payload for an Event
and passes this
Event
instance to the next decoder/handler in the chain.private final DefaultToClientHandler defaultToClientHandler
Session
.public TCPPipelineFactory(Session session)
Copyright © 2012. All Rights Reserved.