Class StompSession
java.lang.Object
org.apache.activemq.artemis.core.protocol.stomp.StompSession
- All Implemented Interfaces:
SessionCallback
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(String messageID, String subscriptionID) addSubscription(long consumerID, String subscriptionID, String clientID, String durableSubscriptionName, String destination, String selector, String ack, boolean noLocal, Integer consumerWindowSize) voidvoidbegin()voidbrowserFinished(org.apache.activemq.artemis.core.server.ServerConsumer consumer) voidclosed()voiddisconnect(org.apache.activemq.artemis.core.server.ServerConsumer consumerId, String errorDescription) voidend()org.apache.activemq.artemis.core.persistence.OperationContextorg.apache.activemq.artemis.core.server.ServerSessionintintbooleanhasCredits(org.apache.activemq.artemis.core.server.ServerConsumer consumerID) booleanbooleanisWritable(ReadyListener callback, Object protocolContext) voidsendInternal(Message message, boolean direct) voidsendInternalLarge(org.apache.activemq.artemis.core.message.impl.CoreMessage message, boolean direct) intsendLargeMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, long bodySize, int deliveryCount) intsendLargeMessageContinuation(org.apache.activemq.artemis.core.server.ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse) intsendMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount) voidsendProducerCreditsFailMessage(int credits, SimpleString address) voidsendProducerCreditsMessage(int credits, SimpleString address) booleanbooleanunsubscribe(String id, String durableSubscriptionName, String clientID) booleanupdateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference ref, boolean failed) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.spi.core.protocol.SessionCallback
close, getCurrentTransaction, hasCredits
-
Field Details
-
MESSAGE_ID_SEPARATOR
public static final char MESSAGE_ID_SEPARATOR- See Also:
-
-
Method Details
-
begin
public void begin() -
isTxPending
public boolean isTxPending() -
end
public void end() -
supportsDirectDelivery
public boolean supportsDirectDelivery()- Specified by:
supportsDirectDeliveryin interfaceSessionCallback
-
isWritable
- Specified by:
isWritablein interfaceSessionCallback
-
getCoreSession
public org.apache.activemq.artemis.core.server.ServerSession getCoreSession() -
hasCredits
public boolean hasCredits(org.apache.activemq.artemis.core.server.ServerConsumer consumerID) - Specified by:
hasCreditsin interfaceSessionCallback
-
sendProducerCreditsMessage
- Specified by:
sendProducerCreditsMessagein interfaceSessionCallback
-
sendProducerCreditsFailMessage
- Specified by:
sendProducerCreditsFailMessagein interfaceSessionCallback
-
afterDelivery
- Specified by:
afterDeliveryin interfaceSessionCallback- Throws:
Exception
-
browserFinished
public void browserFinished(org.apache.activemq.artemis.core.server.ServerConsumer consumer) - Specified by:
browserFinishedin interfaceSessionCallback
-
updateDeliveryCountAfterCancel
public boolean updateDeliveryCountAfterCancel(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference ref, boolean failed) - Specified by:
updateDeliveryCountAfterCancelin interfaceSessionCallback
-
sendMessage
public int sendMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, int deliveryCount) - Specified by:
sendMessagein interfaceSessionCallback
-
sendLargeMessageContinuation
public int sendLargeMessageContinuation(org.apache.activemq.artemis.core.server.ServerConsumer consumer, byte[] body, boolean continues, boolean requiresResponse) - Specified by:
sendLargeMessageContinuationin interfaceSessionCallback
-
sendLargeMessage
public int sendLargeMessage(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.ServerConsumer consumer, long bodySize, int deliveryCount) - Specified by:
sendLargeMessagein interfaceSessionCallback
-
closed
public void closed()- Specified by:
closedin interfaceSessionCallback
-
disconnect
public void disconnect(org.apache.activemq.artemis.core.server.ServerConsumer consumerId, String errorDescription) - Specified by:
disconnectin interfaceSessionCallback
-
acknowledge
- Throws:
Exception
-
addSubscription
public StompPostReceiptFunction addSubscription(long consumerID, String subscriptionID, String clientID, String durableSubscriptionName, String destination, String selector, String ack, boolean noLocal, Integer consumerWindowSize) throws Exception - Throws:
Exception
-
unsubscribe
public boolean unsubscribe(String id, String durableSubscriptionName, String clientID) throws Exception - Throws:
Exception
-
getConnection
-
getContext
public org.apache.activemq.artemis.core.persistence.OperationContext getContext() -
getNoLocalSubscriptionCount
public int getNoLocalSubscriptionCount() -
getSubscriptionCount
public int getSubscriptionCount() -
sendInternal
- Throws:
Exception
-
sendInternalLarge
public void sendInternalLarge(org.apache.activemq.artemis.core.message.impl.CoreMessage message, boolean direct) throws Exception - Throws:
Exception
-