Uses of Class
org.apache.activemq.artemis.api.core.ActiveMQException
-
-
Uses of ActiveMQException in org.apache.activemq.artemis.api.core
Subclasses of ActiveMQException in org.apache.activemq.artemis.api.core Modifier and Type Class Description classActiveMQAddressDoesNotExistExceptionAn operation failed because an address exists on the server.classActiveMQAddressExistsExceptionAn operation failed because an address exists on the server.classActiveMQAddressFullExceptionAn address is full.classActiveMQAlreadyReplicatingExceptionThe server is already paired with a replicating backup.classActiveMQClusterSecurityExceptionSecurity exception thrown when the cluster user fails authentication.classActiveMQConnectionTimedOutExceptionA client timed out will connecting to ActiveMQ Artemis server.classActiveMQDeleteAddressExceptionAn operation failed because an address exists on the server.classActiveMQDisconnectedExceptionA client was disconnected from ActiveMQ Artemis server when the server has shut down.classActiveMQDivertDoesNotExistExceptionAn operation failed because an address exists on the server.classActiveMQDuplicateIdExceptionA DuplicateID was rejected.classActiveMQDuplicateMetaDataExceptionA Session Metadata was set in duplicationclassActiveMQIllegalStateExceptionAn ActiveMQ Artemis resource is not in a legal state (e.g.classActiveMQIncompatibleClientServerExceptionThe server version and the client version are incompatible.classActiveMQInterceptorRejectedPacketExceptionAn outgoing interceptor returned false.classActiveMQInternalErrorExceptionInternal error which prevented ActiveMQ Artemis from performing an important operation.classActiveMQInvalidFilterExpressionExceptionA filter expression was found to be invalid.classActiveMQInvalidQueueConfigurationAn operation failed because a queue exists on the server.classActiveMQInvalidTransientQueueUseExceptionAn operation failed because a queue exists on the server.classActiveMQIOErrorExceptionUnexpected I/O error occurred on the server.classActiveMQLargeMessageExceptionA problem occurred while manipulating the body of a large message.classActiveMQLargeMessageInterruptedExceptionclassActiveMQNativeIOErrorAn error has happened at ActiveMQ's native (non-Java) code used in reading and writing data.classActiveMQNonExistentQueueExceptionAn operation failed because a queue does not exist on the server.classActiveMQNotConnectedExceptionA client is not able to connect to ActiveMQ Artemis server.classActiveMQNullRefExceptionAn operation failed because is dereferencing null pointer.classActiveMQObjectClosedExceptionA client operation failed because the calling resource (ClientSession, ClientProducer, etc.) is closed.classActiveMQQueueExistsExceptionAn operation failed because a queue exists on the server.classActiveMQQueueMaxConsumerLimitReachedAn operation failed because a queue exists on the server.classActiveMQRemoteDisconnectExceptionA security problem occurred (authentication issues, permission issues,...)classActiveMQReplicationTimeooutExceptionThe creation of a session was rejected by the server (e.g.classActiveMQRoutingExceptionA client was redirected.classActiveMQSecurityExceptionA security problem occurred (authentication issues, permission issues,...)classActiveMQSessionCreationExceptionThe creation of a session was rejected by the server (e.g.classActiveMQShutdownExceptionAn operation failed because an address exists on the server.classActiveMQTimeoutExceptionAn operation timed out.classActiveMQTransactionOutcomeUnknownExceptionThe outcome of a transaction is unknown.classActiveMQTransactionRolledBackExceptionA transaction was rolled back.classActiveMQTransactionTimeoutExceptionclassActiveMQUnBlockedExceptionA blocking call from a client was unblocked during failover.classActiveMQUnexpectedRoutingTypeForAddressAn operation failed because a queue exists on the server.classActiveMQUnsupportedPacketExceptionA packet of unsupported type was received by ActiveMQ Artemis PacketHandler.Methods in org.apache.activemq.artemis.api.core that return ActiveMQException Modifier and Type Method Description static ActiveMQExceptionActiveMQExceptionType. createException(int code, String msg)ActiveMQExceptionActiveMQExceptionType. createException(String msg)Methods in org.apache.activemq.artemis.api.core that throw ActiveMQException Modifier and Type Method Description org.apache.activemq.artemis.core.message.LargeBodyReaderICoreMessage. getLargeBodyReader()longMessage. getPersistentSize()This is the size of the message when persisted on disk which is used for metrics tracking Note that even if the message itself is not persisted on disk (ie non-durable) this value is still used for metrics tracking If a normal message it will be the encoded message size If a large message it will be encoded message size + large message body sizebooleanBaseInterceptor. intercept(P packet, RemotingConnection connection)Intercepts a packet which is received before it is sent to the channel -
Uses of ActiveMQException in org.apache.activemq.artemis.api.core.client
Methods in org.apache.activemq.artemis.api.core.client with parameters of type ActiveMQException Modifier and Type Method Description voidSessionFailureListener. beforeReconnect(ActiveMQException exception)Notifies that a connection has failed due to the specified exception.Methods in org.apache.activemq.artemis.api.core.client that throw ActiveMQException Modifier and Type Method Description ClientMessageClientMessage. acknowledge()Acknowledges reception of this message.voidClientSession. addMetaData(String key, String data)Attach any metadata to the session.ClientSession.AddressQueryClientSession. addressQuery(SimpleString address)Queries information on a binding.voidClientSession. addUniqueMetaData(String key, String data)Attach any metadata to the session.voidClientMessage. checkCompletion()This can be optionally used to verify if the entire message has been received.voidClientConsumer. close()Closes the consumer.voidClientProducer. close()Closes the ClientProducer.voidClientSession. close()Closes the session.voidClientSession. commit()Commits the current transaction, blocking.voidClientSession. commit(boolean block)Commits the current transaction.voidClientSession. createAddress(SimpleString address, EnumSet<RoutingType> routingTypes, boolean autoCreated)Create Address with a single initial routing typevoidClientSession. createAddress(SimpleString address, Set<RoutingType> routingTypes, boolean autoCreated)Deprecated.voidClientSession. createAddress(SimpleString address, RoutingType routingType, boolean autoCreated)Create Address with a single initial routing typeClientConsumerClientSession. createConsumer(String queueName)Creates a ClientConsumer to consume messages from the queue with the given name.ClientConsumerClientSession. createConsumer(String queueName, boolean browseOnly)Creates a ClientConsumer to consume or browse messages from the queue with the given name.ClientConsumerClientSession. createConsumer(String queueName, String filter)Creates a ClientConsumer to consume messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(String queueName, String filter, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(String queueName, String filter, int windowSize, int maxRate, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName)Creates a ClientConsumer to consume message from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, boolean browseOnly)Creates a ClientConsumer to consume or browse messages from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, SimpleString filter)Creates a ClientConsumer to consume messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, SimpleString filter, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, SimpleString filter, int priority, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, SimpleString filter, int windowSize, int maxRate, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientConsumerClientSession. createConsumer(SimpleString queueName, SimpleString filter, int priority, int windowSize, int maxRate, boolean browseOnly)Creates a ClientConsumer to consume or browse messages matching the filter from the queue with the given name.ClientProducerClientSession. createProducer()Creates a producer with no default address.ClientProducerClientSession. createProducer(String address)Creates a producer which sends messages to the given addressClientProducerClientSession. createProducer(SimpleString address)Creates a producer which sends messages to the given addressClientProducerClientSession. createProducer(SimpleString address, int rate)Creates a producer which sends messages to the given addressvoidClientSession. createQueue(String address, String queueName)Deprecated.voidClientSession. createQueue(String address, String queueName, boolean durable)Deprecated.voidClientSession. createQueue(String address, String queueName, String filter, boolean durable)Deprecated.voidClientSession. createQueue(String address, String queueName, String filter, boolean durable, boolean autoCreated)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName, boolean durable)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName, String filter, boolean durable)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName, String filter, boolean durable, boolean autoCreated)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName, String filter, boolean durable, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers)Deprecated.voidClientSession. createQueue(String address, RoutingType routingType, String queueName, String filter, boolean durable, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue)Deprecated.voidClientSession. createQueue(QueueConfiguration queueConfiguration)This method creates a queue based on theQueueConfigurationinput.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName)Deprecated.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, boolean durable)Deprecated.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable)Deprecated.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean autoCreated)Deprecated.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers)Deprecated.voidClientSession. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, boolean autoCreated, int maxConsumers, boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue)Deprecated.voidClientSession. createQueue(SimpleString address, SimpleString queueName)Deprecated.voidClientSession. createQueue(SimpleString address, SimpleString queueName, boolean durable)Deprecated.voidClientSession. createQueue(SimpleString address, SimpleString queueName, boolean autoCreated, QueueAttributes queueAttributes)Deprecated.voidClientSession. createQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable)Deprecated.voidClientSession. createQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable, boolean autoCreated)Deprecated.ClientSessionClientSessionFactory. createSession()Creates a non-transacted session.ClientSessionClientSessionFactory. createSession(boolean autoCommitSends, boolean autoCommitAcks)Creates a session.ClientSessionClientSessionFactory. createSession(boolean xa, boolean autoCommitSends, boolean autoCommitAcks)Creates a session.ClientSessionClientSessionFactory. createSession(boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge)Creates a session.ClientSessionClientSessionFactory. createSession(boolean autoCommitSends, boolean autoCommitAcks, int ackBatchSize)Creates a session.ClientSessionClientSessionFactory. createSession(String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int ackBatchSize)Creates an authenticated session.ClientSessionClientSessionFactory. createSession(String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int ackBatchSize, String clientID)Creates an authenticated session.voidClientSession. createSharedQueue(QueueConfiguration queueConfiguration)This method is essentially the same asClientSession.createQueue(QueueConfiguration)with a few key exceptions.voidClientSession. createSharedQueue(SimpleString address, RoutingType routingType, SimpleString queueName, boolean durable)Deprecated.voidClientSession. createSharedQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable)Deprecated.voidClientSession. createSharedQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, boolean durable, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue)Deprecated.voidClientSession. createSharedQueue(SimpleString address, SimpleString queueName, boolean durable)Deprecated.voidClientSession. createSharedQueue(SimpleString address, SimpleString queueName, QueueAttributes queueAttributes)Deprecated.voidClientSession. createSharedQueue(SimpleString address, SimpleString queueName, SimpleString filter, boolean durable)Deprecated.voidClientSession. createTemporaryQueue(String address, String queueName)Deprecated.voidClientSession. createTemporaryQueue(String address, String queueName, String filter)Deprecated.voidClientSession. createTemporaryQueue(String address, RoutingType routingType, String queueName)Deprecated.voidClientSession. createTemporaryQueue(String address, RoutingType routingType, String queueName, String filter)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, RoutingType routingType, SimpleString queueName)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filter, int maxConsumers, boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, SimpleString queueName)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, SimpleString queueName, QueueAttributes queueAttributes)Deprecated.voidClientSession. createTemporaryQueue(SimpleString address, SimpleString queueName, SimpleString filter)Deprecated.ClientSessionClientSessionFactory. createTransactedSession()Creates a transacted session.ClientSessionClientSessionFactory. createXASession()Creates a session with XA transaction semantics.voidClientSession. deleteQueue(String queueName)Deletes the queue.voidClientSession. deleteQueue(SimpleString queueName)Deletes the queue.MessageHandlerClientConsumer. getMessageHandler()Returns the MessageHandler associated to this consumer.ClientMessageClientMessage. individualAcknowledge()Acknowledges reception of a single message.voidServerLocator. initialize()This will only instantiate internal objects such as the topologyClientSession.QueueQueryClientSession. queueQuery(SimpleString queueName)Queries information on a queue.ClientMessageClientConsumer. receive()Receives a message from a queue.ClientMessageClientConsumer. receive(long timeout)Receives a message from a queue.ClientMessageClientConsumer. receiveImmediate()Receives a message from a queue.voidClientSession. rollback()Rolls back the current transaction.voidClientSession. rollback(boolean considerLastMessageAsDelivered)Rolls back the current transaction.voidClientMessage. saveToOutputStream(OutputStream out)Saves the content of the message to the OutputStream.voidClientProducer. send(String address, Message message)Sends a message to the specified address instead of the ClientProducer's address.voidClientProducer. send(Message message)Sends a message to an address.voidClientProducer. send(Message message, SendAcknowledgementHandler handler)Sends a message to the specified address instead of the ClientProducer's address.voidClientProducer. send(SimpleString address, Message message)Sends a message to the specified address instead of the ClientProducer's address.voidClientProducer. send(SimpleString address, Message message, SendAcknowledgementHandler handler)Sends a message to the specified address instead of the ClientProducer's address.ClientConsumerClientConsumer. setMessageHandler(MessageHandler handler)Sets the MessageHandler for this consumer to consume messages asynchronously.ClientMessageClientMessage. setOutputStream(OutputStream out)Sets the OutputStream that will receive the content of a message received in a non blocking way.ClientSessionClientSession. start()Starts the session.voidClientSession. stop()Stops the session.booleanClientMessage. waitOutputStreamCompletion(long timeMilliseconds)Wait the outputStream completion of the message. -
Uses of ActiveMQException in org.apache.activemq.artemis.core.server.plugin
Methods in org.apache.activemq.artemis.core.server.plugin that throw ActiveMQException Modifier and Type Method Description default voidActiveMQServerBridgePlugin. afterAcknowledgeBridge(org.apache.activemq.artemis.core.server.cluster.Bridge bridge, org.apache.activemq.artemis.core.server.MessageReference ref)Called after delivered message over this bridge has been acknowledged by the remote brokerdefault voidActiveMQServerAddressPlugin. afterAddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo, boolean reload)After an address has been added tot he brokerdefault voidActiveMQServerBindingPlugin. afterAddBinding(org.apache.activemq.artemis.core.postoffice.Binding binding)After a binding has been addeddefault voidActiveMQServerConsumerPlugin. afterCloseConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer, boolean failed)After a consumer is closeddefault voidActiveMQServerFederationPlugin. afterCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)After a federated queue consumer is closeddefault voidActiveMQServerSessionPlugin. afterCloseSession(org.apache.activemq.artemis.core.server.ServerSession session, boolean failed)After a session is closeddefault voidActiveMQServerConnectionPlugin. afterCreateConnection(RemotingConnection connection)A connection has been created.default voidActiveMQServerConsumerPlugin. afterCreateConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer)After a consumer has been createddefault voidActiveMQServerFederationPlugin. afterCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)After a federated queue consumer is createddefault voidActiveMQServerQueuePlugin. afterCreateQueue(org.apache.activemq.artemis.core.server.Queue queue)After a queue has been createddefault voidActiveMQServerSessionPlugin. afterCreateSession(org.apache.activemq.artemis.core.server.ServerSession session)After a session has been created.default voidActiveMQServerMessagePlugin. afterDeliver(org.apache.activemq.artemis.core.server.MessageReference reference)default voidActiveMQServerMessagePlugin. afterDeliver(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference reference)After a message is delivered to a client consumerdefault voidActiveMQServerBridgePlugin. afterDeliverBridge(org.apache.activemq.artemis.core.server.cluster.Bridge bridge, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.HandleStatus status)Called immediately after a bridge delivers a message but before the message is acknowledgeddefault voidActiveMQServerBridgePlugin. afterDeployBridge(org.apache.activemq.artemis.core.server.cluster.Bridge bridge)After a bridge has been deployeddefault voidActiveMQServerConnectionPlugin. afterDestroyConnection(RemotingConnection connection)A connection has been destroyed.default voidActiveMQServerQueuePlugin. afterDestroyQueue(org.apache.activemq.artemis.core.server.Queue queue, SimpleString address, org.apache.activemq.artemis.core.security.SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress)After a queue has been destroyeddefault voidActiveMQServerFederationPlugin. afterFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message)After a federated queue consumer handles a messagedefault voidActiveMQServerMessagePlugin. afterMessageRoute(Message message, org.apache.activemq.artemis.core.server.RoutingContext context, boolean direct, boolean rejectDuplicates, org.apache.activemq.artemis.core.postoffice.RoutingStatus result)After a message is routeddefault voidActiveMQServerResourcePlugin. afterPutTransaction(Xid xid, org.apache.activemq.artemis.core.transaction.Transaction tx, RemotingConnection remotingConnection)After a transaction is putdefault voidActiveMQServerAddressPlugin. afterRemoveAddress(SimpleString address, org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)After an address has been removeddefault voidActiveMQServerBindingPlugin. afterRemoveBinding(org.apache.activemq.artemis.core.postoffice.Binding binding, org.apache.activemq.artemis.core.transaction.Transaction tx, boolean deleteData)After a binding is removeddefault voidActiveMQServerResourcePlugin. afterRemoveTransaction(Xid xid, RemotingConnection remotingConnection)After a transaction is removeddefault voidActiveMQServerMessagePlugin. afterSend(org.apache.activemq.artemis.core.server.ServerSession session, org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue, org.apache.activemq.artemis.core.postoffice.RoutingStatus result)After a message is sentdefault voidActiveMQServerMessagePlugin. afterSend(org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue, org.apache.activemq.artemis.core.postoffice.RoutingStatus result)default voidActiveMQServerSessionPlugin. afterSessionMetadataAdded(org.apache.activemq.artemis.core.server.ServerSession session, String key, String data)After session metadata is added to the sessiondefault voidActiveMQServerAddressPlugin. afterUpdateAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo)After an address has been updateddefault voidActiveMQServerAddressPlugin. beforeAddAddress(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo, boolean reload)Before an address is added tot he brokerdefault voidActiveMQServerBindingPlugin. beforeAddBinding(org.apache.activemq.artemis.core.postoffice.Binding binding)Before a binding is addeddefault voidActiveMQServerConsumerPlugin. beforeCloseConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer, boolean failed)Before a consumer is closeddefault voidActiveMQServerFederationPlugin. beforeCloseFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer)Before a federated queue consumer is closeddefault voidActiveMQServerSessionPlugin. beforeCloseSession(org.apache.activemq.artemis.core.server.ServerSession session, boolean failed)Before a session is closeddefault voidActiveMQServerConsumerPlugin. beforeCreateConsumer(long consumerID, SimpleString queueName, SimpleString filterString, boolean browseOnly, boolean supportLargeMessage)default voidActiveMQServerConsumerPlugin. beforeCreateConsumer(long consumerID, org.apache.activemq.artemis.core.postoffice.QueueBinding queueBinding, SimpleString filterString, boolean browseOnly, boolean supportLargeMessage)Before a consumer is createddefault voidActiveMQServerFederationPlugin. beforeCreateFederatedQueueConsumer(org.apache.activemq.artemis.core.server.federation.FederatedConsumerKey key)Before a federated queue consumer is createddefault voidActiveMQServerQueuePlugin. beforeCreateQueue(QueueConfiguration queueConfig)Before a queue is createddefault voidActiveMQServerQueuePlugin. beforeCreateQueue(org.apache.activemq.artemis.core.server.QueueConfig queueConfig)Before a queue is createddefault voidActiveMQServerSessionPlugin. beforeCreateSession(String name, String username, int minLargeMessageSize, RemotingConnection connection, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, boolean xa, String defaultAddress, SessionCallback callback, boolean autoCreateQueues, org.apache.activemq.artemis.core.persistence.OperationContext context, Map<SimpleString,RoutingType> prefixes)Before a session is created.default voidActiveMQServerMessagePlugin. beforeDeliver(org.apache.activemq.artemis.core.server.MessageReference reference)Deprecated.use throws ActiveMQExceptionActiveMQServerMessagePlugin.beforeDeliver(ServerConsumer, MessageReference)default voidActiveMQServerMessagePlugin. beforeDeliver(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference reference)Before a message is delivered to a client consumerdefault voidActiveMQServerBridgePlugin. beforeDeliverBridge(org.apache.activemq.artemis.core.server.cluster.Bridge bridge, org.apache.activemq.artemis.core.server.MessageReference ref)Called immediately before a bridge delivers a messagedefault voidActiveMQServerBridgePlugin. beforeDeployBridge(BridgeConfiguration config)Before a bridge is deployeddefault voidActiveMQServerQueuePlugin. beforeDestroyQueue(SimpleString queueName, org.apache.activemq.artemis.core.security.SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress)default voidActiveMQServerQueuePlugin. beforeDestroyQueue(org.apache.activemq.artemis.core.server.Queue queue, org.apache.activemq.artemis.core.security.SecurityAuth session, boolean checkConsumerCount, boolean removeConsumers, boolean autoDeleteAddress)Before a queue is destroyeddefault voidActiveMQServerFederationPlugin. beforeFederatedQueueConsumerMessageHandled(org.apache.activemq.artemis.core.server.federation.FederatedQueueConsumer consumer, Message message)Before a federated queue consumer handles a messagedefault voidActiveMQServerMessagePlugin. beforeMessageRoute(Message message, org.apache.activemq.artemis.core.server.RoutingContext context, boolean direct, boolean rejectDuplicates)Before a message is routeddefault voidActiveMQServerResourcePlugin. beforePutTransaction(Xid xid, org.apache.activemq.artemis.core.transaction.Transaction tx, RemotingConnection remotingConnection)Before a transaction is putdefault voidActiveMQServerAddressPlugin. beforeRemoveAddress(SimpleString address)Before an address is removeddefault voidActiveMQServerBindingPlugin. beforeRemoveBinding(SimpleString uniqueName, org.apache.activemq.artemis.core.transaction.Transaction tx, boolean deleteData)Before a binding is removeddefault voidActiveMQServerResourcePlugin. beforeRemoveTransaction(Xid xid, RemotingConnection remotingConnection)Before a transaction is removeddefault voidActiveMQServerMessagePlugin. beforeSend(org.apache.activemq.artemis.core.server.ServerSession session, org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue)Before a message is sentdefault voidActiveMQServerMessagePlugin. beforeSend(org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue)default voidActiveMQServerSessionPlugin. beforeSessionMetadataAdded(org.apache.activemq.artemis.core.server.ServerSession session, String key, String data)Before session metadata is added to the sessiondefault voidActiveMQServerAddressPlugin. beforeUpdateAddress(SimpleString address, EnumSet<RoutingType> routingTypes)Before an address is updateddefault booleanActiveMQServerMessagePlugin. canAccept(org.apache.activemq.artemis.core.server.ServerConsumer consumer, org.apache.activemq.artemis.core.server.MessageReference reference)Before a message is delivered to a client consumerdefault voidActiveMQServerCriticalPlugin. criticalFailure(org.apache.activemq.artemis.utils.critical.CriticalComponent components)A Critical failure has been detected.default voidActiveMQServerSessionPlugin. duplicateSessionMetadataFailure(org.apache.activemq.artemis.core.server.ServerSession session, String key, String data)Called when adding session metadata fails because the metadata is a duplicatedefault booleanActiveMQServerFederationPlugin. federatedAddressConditionalCreateConsumer(org.apache.activemq.artemis.core.server.Queue queue)Conditionally create a federated queue consumer for a federated address.default booleanActiveMQServerFederationPlugin. federatedAddressConditionalCreateDivertConsumer(org.apache.activemq.artemis.core.postoffice.impl.DivertBinding divertBinding, org.apache.activemq.artemis.core.postoffice.QueueBinding queueBinding)default booleanActiveMQServerFederationPlugin. federatedQueueConditionalCreateConsumer(org.apache.activemq.artemis.core.server.ServerConsumer consumer)Conditionally create a federated queue consumer for a federated queue.default voidActiveMQServerFederationPlugin. federationStreamStarted(org.apache.activemq.artemis.core.server.federation.FederationStream stream)After a federation stream has been starteddefault voidActiveMQServerFederationPlugin. federationStreamStopped(org.apache.activemq.artemis.core.server.federation.FederationStream stream)After a federation stream has been stoppeddefault voidActiveMQServerMessagePlugin. messageAcknowledged(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason)default voidActiveMQServerMessagePlugin. messageAcknowledged(org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason, org.apache.activemq.artemis.core.server.ServerConsumer consumer)Deprecated.default voidActiveMQServerMessagePlugin. messageAcknowledged(org.apache.activemq.artemis.core.transaction.Transaction tx, org.apache.activemq.artemis.core.server.MessageReference ref, org.apache.activemq.artemis.core.server.impl.AckReason reason, org.apache.activemq.artemis.core.server.ServerConsumer consumer)A message has been acknowledgeddefault voidActiveMQServerMessagePlugin. messageExpired(org.apache.activemq.artemis.core.server.MessageReference message, SimpleString messageExpiryAddress)default voidActiveMQServerMessagePlugin. messageExpired(org.apache.activemq.artemis.core.server.MessageReference message, SimpleString messageExpiryAddress, org.apache.activemq.artemis.core.server.ServerConsumer consumer)A message has been expireddefault voidActiveMQServerMessagePlugin. onMessageRouteException(Message message, org.apache.activemq.artemis.core.server.RoutingContext context, boolean direct, boolean rejectDuplicates, Exception e)When there was an error routing the messagedefault voidActiveMQServerMessagePlugin. onSendException(org.apache.activemq.artemis.core.server.ServerSession session, org.apache.activemq.artemis.core.transaction.Transaction tx, Message message, boolean direct, boolean noAutoCreateQueue, Exception e)When there was an exception sending the messagevoidActiveMQPluginRunnable. run(P plugin) -
Uses of ActiveMQException in org.apache.activemq.artemis.spi.core.protocol
Methods in org.apache.activemq.artemis.spi.core.protocol with parameters of type ActiveMQException Modifier and Type Method Description FutureAbstractRemotingConnection. asyncFail(ActiveMQException me)FutureRemotingConnection. asyncFail(ActiveMQException me)Same thing as fail, but using an executor.protected voidAbstractRemotingConnection. callFailureListeners(ActiveMQException me, String scaleDownTargetNodeID)voidAbstractRemotingConnection. fail(ActiveMQException me)voidRemotingConnection. fail(ActiveMQException me)called when the underlying connection fails.voidRemotingConnection. fail(ActiveMQException me, String scaleDownTargetNodeID)called when the underlying connection fails. -
Uses of ActiveMQException in org.apache.activemq.artemis.spi.core.remoting
Methods in org.apache.activemq.artemis.spi.core.remoting with parameters of type ActiveMQException Modifier and Type Method Description booleanClientProtocolManager. cleanupBeforeFailover(ActiveMQException cause)voidBaseConnectionLifeCycleListener. connectionException(Object connectionID, ActiveMQException me)Called when an error occurs on the connection.abstract voidSessionContext. returnBlocking(ActiveMQException cause)Interrupt and return any blocked callsMethods in org.apache.activemq.artemis.spi.core.remoting that throw ActiveMQException Modifier and Type Method Description abstract ClientSession.AddressQuerySessionContext. addressQuery(SimpleString address)abstract voidSessionContext. addSessionMetadata(String key, String data)abstract voidSessionContext. addUniqueMetaData(String key, String data)booleanClientProtocolManager. checkForFailover(String nodeID)abstract voidSessionContext. closeConsumer(ClientConsumer consumer)abstract booleanSessionContext. configureTransactionTimeout(int seconds)abstract voidSessionContext. createAddress(SimpleString address, EnumSet<RoutingType> routingTypes, boolean autoCreated)abstract voidSessionContext. createAddress(SimpleString address, Set<RoutingType> routingTypes, boolean autoCreated)Deprecated.abstract org.apache.activemq.artemis.core.client.impl.ClientConsumerInternalSessionContext. createConsumer(SimpleString queueName, SimpleString filterString, int priority, int windowSize, int maxRate, int ackBatchSize, boolean browseOnly, Executor executor, Executor flowControlExecutor)abstract voidSessionContext. createQueue(QueueConfiguration queueConfiguration)abstract voidSessionContext. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temp, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreated)Deprecated.abstract voidSessionContext. createQueue(SimpleString address, RoutingType routingType, SimpleString queueName, SimpleString filterString, boolean durable, boolean temp, int maxConsumers, boolean purgeOnNoConsumers, boolean autoCreated, Boolean exclusive, Boolean lastVale)abstract voidSessionContext. createQueue(SimpleString address, SimpleString queueName, boolean temp, boolean autoCreated, QueueAttributes queueAttributes)abstract voidSessionContext. createQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable, boolean temp, boolean autoCreated)Deprecated.SessionContextClientProtocolManager. createSessionContext(String name, String username, String password, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge, int minLargeMessageSize, int confirmationWindowSize, String clientID)abstract voidSessionContext. createSharedQueue(QueueConfiguration queueConfiguration)abstract voidSessionContext. createSharedQueue(SimpleString address, SimpleString queueName, QueueAttributes queueAttributes)Deprecated.abstract voidSessionContext. createSharedQueue(SimpleString address, SimpleString queueName, RoutingType routingType, SimpleString filterString, boolean durable)Deprecated.abstract voidSessionContext. createSharedQueue(SimpleString address, SimpleString queueName, RoutingType routingType, SimpleString filterString, boolean durable, Integer maxConsumers, Boolean purgeOnNoConsumers, Boolean exclusive, Boolean lastValue)Deprecated.abstract voidSessionContext. createSharedQueue(SimpleString address, SimpleString queueName, SimpleString filterString, boolean durable)Deprecated.abstract voidSessionContext. deleteQueue(SimpleString queueName)abstract voidSessionContext. expireMessage(ClientConsumer consumer, Message message)abstract voidSessionContext. forceDelivery(ClientConsumer consumer, long sequence)abstract intSessionContext. getDefaultConsumerWindowSize(org.apache.activemq.artemis.core.protocol.core.impl.wireformat.SessionQueueQueryResponseMessage response)abstract ClientSession.QueueQuerySessionContext. queueQuery(SimpleString queueName)abstract booleanSessionContext. reattachOnNewConnection(RemotingConnection newConnection)it will either reattach or reconnect, preferably reattaching it.abstract intSessionContext. recoverSessionTimeout()Performs a round trip to the server requesting what is the current tx timeout on the sessionabstract voidSessionContext. recreateConsumerOnServer(org.apache.activemq.artemis.core.client.impl.ClientConsumerInternal consumerInternal, long consumerId, boolean isSessionStarted)abstract voidSessionContext. recreateSession(String username, String password, int minLargeMessageSize, boolean xa, boolean autoCommitSends, boolean autoCommitAcks, boolean preAcknowledge)abstract voidSessionContext. restartSession()abstract voidSessionContext. sendACK(boolean individual, boolean block, ClientConsumer consumer, Message message)abstract voidSessionContext. sendFullMessage(ICoreMessage msgI, boolean sendBlocking, SendAcknowledgementHandler handler, SimpleString defaultAddress, int senderID)abstract intSessionContext. sendInitialChunkOnLargeMessage(Message msgI)it should return the number of credits (or bytes) used to send this packetabstract intSessionContext. sendLargeMessageChunk(Message msgI, long messageBodySize, boolean sendBlocking, boolean lastChunk, byte[] chunk, int reconnectID, int senderID, SendAcknowledgementHandler messageHandler)abstract intSessionContext. sendServerLargeMessageChunk(Message msgI, long messageBodySize, boolean sendBlocking, boolean lastChunk, byte[] chunk, int senderID, SendAcknowledgementHandler messageHandler)abstract voidSessionContext. sessionClose()abstract voidSessionContext. sessionStart()abstract voidSessionContext. sessionStop()abstract voidSessionContext. simpleCommit()abstract voidSessionContext. simpleCommit(boolean block)abstract voidSessionContext. simpleRollback(boolean lastMessageAsDelivered)If we are doing a simple rollback on the RA, we need to ack the last message sent to the consumer, otherwise DLQ won't work.abstract voidSessionContext. xaCommit(Xid xid, boolean onePhase)abstract voidSessionContext. xaEnd(Xid xid, int flags)abstract voidSessionContext. xaFailed(Xid xid)abstract voidSessionContext. xaForget(Xid xid)abstract intSessionContext. xaPrepare(Xid xid)abstract voidSessionContext. xaRollback(Xid xid, boolean wasStarted)abstract Xid[]SessionContext. xaScan()abstract voidSessionContext. xaStart(Xid xid, int flags)
-