public class AMQSession extends Object implements SessionCallback
| Modifier and Type | Field and Description |
|---|---|
protected IDGenerator |
consumerIDGenerator |
| Constructor and Description |
|---|
AMQSession(org.apache.activemq.command.ConnectionInfo connInfo,
org.apache.activemq.command.SessionInfo sessInfo,
ActiveMQServer server,
OpenWireConnection connection,
OpenWireProtocolManager protocolManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterDelivery() |
void |
browserFinished(ServerConsumer consumer) |
void |
close() |
void |
closed() |
String |
convertWildcard(org.apache.activemq.command.ActiveMQDestination openWireDest) |
List<AMQConsumer> |
createConsumer(org.apache.activemq.command.ConsumerInfo info,
SlowConsumerDetectionListener slowConsumerDetectionListener) |
void |
deliverMessage(org.apache.activemq.command.MessageDispatch dispatch) |
void |
disableSecurity() |
void |
disconnect(ServerConsumer consumerId,
SimpleString queueName) |
OpenWireConnection |
getConnection() |
org.apache.activemq.command.ConnectionInfo |
getConnectionInfo() |
ActiveMQServer |
getCoreServer() |
ServerSession |
getCoreSession() |
boolean |
hasCredits(ServerConsumer consumer) |
void |
initialize() |
boolean |
isClosed() |
boolean |
isInternal() |
boolean |
isWritable(ReadyListener callback,
Object protocolContext) |
void |
send(org.apache.activemq.command.ProducerInfo producerInfo,
org.apache.activemq.command.Message messageSend,
boolean sendProducerAck) |
int |
sendLargeMessage(MessageReference reference,
Message message,
ServerConsumer consumerID,
long bodySize,
int deliveryCount) |
int |
sendLargeMessageContinuation(ServerConsumer consumerID,
byte[] body,
boolean continues,
boolean requiresResponse) |
int |
sendMessage(MessageReference reference,
Message message,
ServerConsumer consumer,
int deliveryCount) |
void |
sendProducerCreditsFailMessage(int credits,
SimpleString address) |
void |
sendProducerCreditsMessage(int credits,
SimpleString address) |
void |
start() |
boolean |
supportsDirectDelivery() |
boolean |
updateDeliveryCountAfterCancel(ServerConsumer consumer,
MessageReference ref,
boolean failed) |
org.apache.activemq.openwire.OpenWireFormat |
wireFormat() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getCurrentTransactionprotected final IDGenerator consumerIDGenerator
public AMQSession(org.apache.activemq.command.ConnectionInfo connInfo,
org.apache.activemq.command.SessionInfo sessInfo,
ActiveMQServer server,
OpenWireConnection connection,
OpenWireProtocolManager protocolManager)
public boolean isClosed()
public org.apache.activemq.openwire.OpenWireFormat wireFormat()
public void initialize()
public boolean supportsDirectDelivery()
supportsDirectDelivery in interface SessionCallbackpublic boolean updateDeliveryCountAfterCancel(ServerConsumer consumer, MessageReference ref, boolean failed)
updateDeliveryCountAfterCancel in interface SessionCallbackpublic List<AMQConsumer> createConsumer(org.apache.activemq.command.ConsumerInfo info, SlowConsumerDetectionListener slowConsumerDetectionListener) throws Exception
Exceptionpublic void start()
public void afterDelivery()
throws Exception
afterDelivery in interface SessionCallbackExceptionpublic void browserFinished(ServerConsumer consumer)
browserFinished in interface SessionCallbackpublic boolean isWritable(ReadyListener callback, Object protocolContext)
isWritable in interface SessionCallbackpublic void sendProducerCreditsMessage(int credits,
SimpleString address)
sendProducerCreditsMessage in interface SessionCallbackpublic void sendProducerCreditsFailMessage(int credits,
SimpleString address)
sendProducerCreditsFailMessage in interface SessionCallbackpublic int sendMessage(MessageReference reference, Message message, ServerConsumer consumer, int deliveryCount)
sendMessage in interface SessionCallbackpublic int sendLargeMessage(MessageReference reference, Message message, ServerConsumer consumerID, long bodySize, int deliveryCount)
sendLargeMessage in interface SessionCallbackpublic int sendLargeMessageContinuation(ServerConsumer consumerID, byte[] body, boolean continues, boolean requiresResponse)
sendLargeMessageContinuation in interface SessionCallbackpublic void closed()
closed in interface SessionCallbackpublic boolean hasCredits(ServerConsumer consumer)
hasCredits in interface SessionCallbackpublic void disconnect(ServerConsumer consumerId, SimpleString queueName)
disconnect in interface SessionCallbackpublic void send(org.apache.activemq.command.ProducerInfo producerInfo,
org.apache.activemq.command.Message messageSend,
boolean sendProducerAck)
throws Exception
Exceptionpublic String convertWildcard(org.apache.activemq.command.ActiveMQDestination openWireDest)
public ServerSession getCoreSession()
public ActiveMQServer getCoreServer()
public org.apache.activemq.command.ConnectionInfo getConnectionInfo()
public void disableSecurity()
public void deliverMessage(org.apache.activemq.command.MessageDispatch dispatch)
public OpenWireConnection getConnection()
public boolean isInternal()
Copyright © 2020 The Apache Software Foundation. All rights reserved.