public class ProtonProtocolManager extends Object implements ProtocolManager, NotificationListener
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<org.apache.qpid.proton.engine.EndpointState> |
ACTIVE |
static EnumSet<org.apache.qpid.proton.engine.EndpointState> |
ANY_ENDPOINT_STATE |
static EnumSet<org.apache.qpid.proton.engine.EndpointState> |
CLOSED |
static EnumSet<org.apache.qpid.proton.engine.EndpointState> |
INITIALIZED |
static EnumSet<org.apache.qpid.proton.engine.EndpointState> |
UNINITIALIZED |
| Constructor and Description |
|---|
ProtonProtocolManager(HornetQServer server) |
| 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) |
ServerMessageImpl |
createServerMessage() |
ProtonSession |
createSession(ProtonRemotingConnection protonConnection,
org.apache.qpid.proton.engine.impl.TransportImpl protonTransport) |
void |
handleBuffer(RemotingConnection connection,
HornetQBuffer buffer) |
void |
handleDelivery(org.apache.qpid.proton.engine.Sender sender,
byte[] tag,
org.apache.qpid.proton.jms.EncodedMessage encodedMessage,
ServerMessage message,
ProtonRemotingConnection connection,
boolean preSettle) |
void |
handleMessage(org.apache.qpid.proton.engine.Receiver receiver,
HornetQBuffer buffer,
org.apache.qpid.proton.engine.Delivery delivery,
ProtonRemotingConnection connection,
ProtonSession protonSession,
String address) |
void |
handleTransaction(org.apache.qpid.proton.engine.Receiver receiver,
HornetQBuffer buffer,
org.apache.qpid.proton.engine.Delivery delivery,
ProtonSession protonSession) |
int |
isReadyToHandle(HornetQBuffer buffer)
called by the remoting system prior to
BufferHandler.bufferReceived(Object, org.hornetq.api.core.HornetQBuffer). |
boolean |
isSupportsWebsockets(String protocol) |
byte[] |
longToBytes(long x) |
void |
onNotification(Notification notification) |
void |
removeHandler(String name) |
public static final EnumSet<org.apache.qpid.proton.engine.EndpointState> UNINITIALIZED
public static final EnumSet<org.apache.qpid.proton.engine.EndpointState> INITIALIZED
public static final EnumSet<org.apache.qpid.proton.engine.EndpointState> ACTIVE
public static final EnumSet<org.apache.qpid.proton.engine.EndpointState> CLOSED
public static final EnumSet<org.apache.qpid.proton.engine.EndpointState> ANY_ENDPOINT_STATE
public ProtonProtocolManager(HornetQServer server)
public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
createConnectionEntry in interface ProtocolManagerpublic void removeHandler(String name)
removeHandler in interface ProtocolManagerpublic 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 ProtocolManagerisReadyToHandle in interface BufferDecoderbuffer - the bufferpublic void handleBuffer(RemotingConnection connection, HornetQBuffer buffer)
handleBuffer in interface ProtocolManagerpublic void addChannelHandlers(String protocol, Map<String,org.jboss.netty.channel.ChannelHandler> handlers, BufferDecoder decoder)
addChannelHandlers in interface ProtocolManagerpublic boolean isSupportsWebsockets(String protocol)
isSupportsWebsockets in interface ProtocolManagerpublic void onNotification(Notification notification)
onNotification in interface NotificationListenerpublic ServerMessageImpl createServerMessage()
public void handleMessage(org.apache.qpid.proton.engine.Receiver receiver,
HornetQBuffer buffer,
org.apache.qpid.proton.engine.Delivery delivery,
ProtonRemotingConnection connection,
ProtonSession protonSession,
String address)
throws Exception
Exceptionpublic void handleDelivery(org.apache.qpid.proton.engine.Sender sender,
byte[] tag,
org.apache.qpid.proton.jms.EncodedMessage encodedMessage,
ServerMessage message,
ProtonRemotingConnection connection,
boolean preSettle)
public ProtonSession createSession(ProtonRemotingConnection protonConnection, org.apache.qpid.proton.engine.impl.TransportImpl protonTransport) throws HornetQAMQPException
HornetQAMQPExceptionpublic void handleTransaction(org.apache.qpid.proton.engine.Receiver receiver,
HornetQBuffer buffer,
org.apache.qpid.proton.engine.Delivery delivery,
ProtonSession protonSession)
throws HornetQAMQPIllegalStateException
HornetQAMQPIllegalStateExceptionpublic byte[] longToBytes(long x)
Copyright © 2013 JBoss, a division of Red Hat. All rights reserved.