public interface ProtocolManager extends BufferDecoder
| Modifier and Type | Method and Description |
|---|---|
void |
addChannelHandlers(String protocol,
Map<String,org.jboss.netty.channel.ChannelHandler> handlers,
BufferDecoder decoder) |
ConnectionEntry |
createConnectionEntry(Acceptor acceptorUsed,
Connection connection) |
void |
handleBuffer(RemotingConnection connection,
HornetQBuffer buffer) |
int |
isReadyToHandle(HornetQBuffer buffer)
called by the remoting system prior to
BufferHandler.bufferReceived(Object, org.hornetq.api.core.HornetQBuffer). |
boolean |
isSupportsWebsockets(String protocol) |
void |
removeHandler(String name) |
ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
void removeHandler(String name)
int isReadyToHandle(HornetQBuffer buffer)
BufferDecoderBufferHandler.bufferReceived(Object, org.hornetq.api.core.HornetQBuffer).
The implementation should return true if there is enough data in the buffer to decode. otherwise false.isReadyToHandle in interface BufferDecoderbuffer - the buffervoid handleBuffer(RemotingConnection connection, HornetQBuffer buffer)
void addChannelHandlers(String protocol, Map<String,org.jboss.netty.channel.ChannelHandler> handlers, BufferDecoder decoder)
boolean isSupportsWebsockets(String protocol)
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.