Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods
void
void
void
void
boolean
void
void
close (boolean failed,
boolean force)
void
void
This method invokes
ActiveMQServer.createQueue(QueueConfiguration) with a few client-specific additions:
set the routing type based on the prefixes configured on the acceptor used by the client
strip any prefixes from the address and queue names (if applicable)
check authorization based on the client's credentials
enforce queue creation resource limit
set up callbacks to clean up temporary queues once the client disconnects
createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean lastValue,
boolean autoCreated)
createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated)
createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated)
createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated,
Long ringSize)
void
void
void
void
void
createSharedQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean durable,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount)
void
createSharedQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean durable,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount)
void
void
void
Add all the producers detail to the JSONArray object.
void
void
Certain protocols may create an internal session that shouldn't go through security checks.
void
expire (long consumerID,
long messageID)
void
Get the canonical (i.e. non-prefixed) address and the corresponding routing-type.
Get the canonical (i.e. non-prefixed) address and the corresponding routing-type.
int
long
int
int
Get the prefix (if it exists) from the address based on the prefixes provided to the ServerSession constructor.
int
void
void
boolean
void
void
boolean
Strip the prefix (if it exists) from the address based on the prefixes provided to the ServerSession constructor.
void
void
void
To be used by protocol heads that needs to control the transaction outside the session context.
void
rollback (boolean considerLastMessageAsDelivered)
void
void
void
void
void
void
void
void
int
void
void
void
void
void
void
void
Method Details
getMinLargeMessageSize
int getMinLargeMessageSize ()
enableSecurity
void enableSecurity ()
Certain protocols may create an internal session that shouldn't go through security checks. Make sure you don't
expose this property through any protocol layer as that would be a security breach
disableSecurity
void disableSecurity ()
individualAcknowledge
void individualAcknowledge (long consumerID,
long messageID)
throws Exception
Throws:
Exception
individualCancel
void individualCancel (long consumerID,
long messageID,
boolean failed)
throws Exception
Throws:
Exception
rollback
void rollback (boolean considerLastMessageAsDelivered)
throws Exception
Throws:
Exception
xaGetTimeout
int xaGetTimeout ()
xaSetTimeout
void xaSetTimeout (int timeout)
resetTX
To be used by protocol heads that needs to control the transaction outside the session context.
createQueue
Deprecated.
Create queue with default delivery mode
Throws:
Exception
createQueue
@Deprecated
Queue createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean lastValue,
boolean autoCreated)
throws Exception
Deprecated.
Throws:
Exception
createQueue
@Deprecated
Queue createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated)
throws Exception
Deprecated.
Throws:
Exception
createQueue
@Deprecated
Queue createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated)
throws Exception
Deprecated.
Throws:
Exception
createQueue
@Deprecated
Queue createQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean temporary,
boolean durable,
int maxConsumers,
boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount,
boolean autoCreated,
Long ringSize)
throws Exception
Deprecated.
Throws:
Exception
createQueue
This method invokes
ActiveMQServer.createQueue(QueueConfiguration) with a few client-specific additions:
set the routing type based on the prefixes configured on the acceptor used by the client
strip any prefixes from the address and queue names (if applicable)
check authorization based on the client's credentials
enforce queue creation resource limit
set up callbacks to clean up temporary queues once the client disconnects
Parameters:
queueConfiguration - the configuration to use when creating the queue
Returns:
the Queue instance that was created
Throws:
Exception
receiveConsumerCredits
void receiveConsumerCredits (long consumerID,
int credits)
throws Exception
Throws:
Exception
forceConsumerDelivery
void forceConsumerDelivery (long consumerID,
long sequence)
throws Exception
Throws:
Exception
setTransferring
void setTransferring (boolean transferring)
describeProducersInfo
Add all the producers detail to the JSONArray object. This is a method to be used by the management layer.
Throws:
Exception
getCreationTime
long getCreationTime ()
isClosed
boolean isClosed ()
createSharedQueue
Deprecated.
Throws:
Exception
createSharedQueue
@Deprecated
void createSharedQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean durable,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount)
throws Exception
Deprecated.
Throws:
Exception
createSharedQueue
@Deprecated
void createSharedQueue (SimpleString address,
SimpleString name,
RoutingType routingType,
SimpleString filterString,
boolean durable,
Integer maxConsumers,
Boolean purgeOnNoConsumers,
Boolean exclusive,
Boolean groupRebalance,
Integer groupBuckets,
SimpleString groupFirstKey,
Boolean lastValue,
SimpleString lastValueKey,
Boolean nonDestructive,
Integer consumersBeforeDispatch,
Long delayBeforeDispatch,
Boolean autoDelete,
Long autoDeleteDelay,
Long autoDeleteMessageCount)
throws Exception
Deprecated.
Throws:
Exception
createSharedQueue
Deprecated.
Throws:
Exception
createSharedQueue
Deprecated.
Throws:
Exception
getInTXMessagesForConsumer
removePrefix
Strip the prefix (if it exists) from the address based on the prefixes provided to the ServerSession constructor.
Parameters:
address - the address to inspect
Returns:
the canonical (i.e. non-prefixed) address name
getPrefix
Get the prefix (if it exists) from the address based on the prefixes provided to the ServerSession constructor.
Parameters:
address - the address to inspect
Returns:
the canonical (i.e. non-prefixed) address name
getAddressAndRoutingType
Get the canonical (i.e. non-prefixed) address and the corresponding routing-type.
Parameters:
addressInfo - the address to inspect
Returns:
a org.apache.activemq.artemis.api.core.Pair representing the canonical (i.e. non-prefixed) address
name and the org.apache.activemq.artemis.api.core.RoutingType corresponding to the that prefix.
getAddressAndRoutingTypes
Get the canonical (i.e. non-prefixed) address and the corresponding routing-type.
Parameters:
address - the address to inspect
defaultRoutingTypes - a the java.util.Set of org.apache.activemq.artemis.api.core.RoutingType
objects to return if no prefix match is found.
Returns:
a org.apache.activemq.artemis.api.core.Pair representing the canonical (i.e. non-prefixed) address
name and the java.util.Set of org.apache.activemq.artemis.api.core.RoutingType objects
corresponding to the that prefix.
removeProducer
void removeProducer (String ID)
getConsumerCount
int getConsumerCount ()
getProducerCount
int getProducerCount ()
getDefaultConsumerWindowSize