Class AMQPFederationTarget
- java.lang.Object
-
- org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederation
-
- org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederationTarget
-
- All Implemented Interfaces:
Federation,FederationInternal
public class AMQPFederationTarget extends AMQPFederation
This is the receiving side of an AMQP broker federation that occurs over an inbound connection from a remote peer. The federation target only comes into existence once a remote peer connects and successfully authenticates against a control link validation address. Only one federation target is allowed per connection.
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederation
addressMatchPolicies, connected, eventDispatcher, eventProcessor, FEDERATION_INSTANCE_RECORD, linkClosedinterceptors, name, queueMatchPolicies, scheduler, server, session, started, wildcardConfiguration
-
-
Constructor Summary
Constructors Constructor Description AMQPFederationTarget(String name, AMQPFederationConfiguration configuration, AMQPSessionContext session, org.apache.activemq.artemis.core.server.ActiveMQServer server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AMQPConnectionContextgetConnectionContext()intgetLargeMessageThreshold()intgetLinkAttachTimeout()intgetReceiverCredits()intgetReceiverCreditsLow()AMQPSessionContextgetSessionContext()protected voidhandleFederationStarted()Provides an entry point for the concrete federation implementation to respond to being started.booleanisCoreMessageTunnelingEnabled()booleanisIgnoreQueueConsumerFilters()booleanisIgnoreQueueConsumerPriorities()protected voidsignalError(Exception cause)Error signaling API that must be implemented by the specific federation implementation to handle errors encountered during normal operations.protected voidsignalResourceCreateError(Exception cause)Error signaling API that must be implemented by the specific federation implementation to handle error when creating a federation resource such as an outgoing receiver link.-
Methods inherited from class org.apache.activemq.artemis.protocol.amqp.connect.federation.AMQPFederation
addAddressMatchPolicy, addLinkClosedInterceptor, addQueueMatchPolicy, getName, getScheduler, getServer, getWildcardConfiguration, handleFederationStopped, invokeLinkClosedInterceptors, isStarted, removeLinkClosedInterceptor, signalFederationStarted, signalFederationStopped, start, stop
-
-
-
-
Constructor Detail
-
AMQPFederationTarget
public AMQPFederationTarget(String name, AMQPFederationConfiguration configuration, AMQPSessionContext session, org.apache.activemq.artemis.core.server.ActiveMQServer server)
-
-
Method Detail
-
getConnectionContext
public AMQPConnectionContext getConnectionContext()
- Specified by:
getConnectionContextin classAMQPFederation- Returns:
- the session context assigned to this federation instance
-
getSessionContext
public AMQPSessionContext getSessionContext()
- Specified by:
getSessionContextin classAMQPFederation- Returns:
- the session context assigned to this federation instance
-
getReceiverCredits
public int getReceiverCredits()
- Specified by:
getReceiverCreditsin classAMQPFederation- Returns:
- the configured
Receiverlink credit batch size.
-
getReceiverCreditsLow
public int getReceiverCreditsLow()
- Specified by:
getReceiverCreditsLowin classAMQPFederation- Returns:
- the configured
Receiverlink credit low value.
-
getLargeMessageThreshold
public int getLargeMessageThreshold()
- Specified by:
getLargeMessageThresholdin classAMQPFederation- Returns:
- the size in bytes before a message is considered large.
-
getLinkAttachTimeout
public int getLinkAttachTimeout()
- Specified by:
getLinkAttachTimeoutin classAMQPFederation- Returns:
- the timeout before signaling an error when creating remote link (0 mean disable).
-
isCoreMessageTunnelingEnabled
public boolean isCoreMessageTunnelingEnabled()
- Specified by:
isCoreMessageTunnelingEnabledin classAMQPFederation- Returns:
- the true if the federation should support core message tunneling.
-
isIgnoreQueueConsumerFilters
public boolean isIgnoreQueueConsumerFilters()
- Specified by:
isIgnoreQueueConsumerFiltersin classAMQPFederation- Returns:
- the true if the federation should ignore filters on queue consumers.
-
isIgnoreQueueConsumerPriorities
public boolean isIgnoreQueueConsumerPriorities()
- Specified by:
isIgnoreQueueConsumerPrioritiesin classAMQPFederation- Returns:
- the true if the federation should ignore priorities on queue consumers.
-
handleFederationStarted
protected void handleFederationStarted() throws ActiveMQExceptionDescription copied from class:AMQPFederationProvides an entry point for the concrete federation implementation to respond to being started.- Overrides:
handleFederationStartedin classAMQPFederation- Throws:
ActiveMQException- if an error is thrown during policy start.
-
signalResourceCreateError
protected void signalResourceCreateError(Exception cause)
Description copied from class:AMQPFederationError signaling API that must be implemented by the specific federation implementation to handle error when creating a federation resource such as an outgoing receiver link.- Specified by:
signalResourceCreateErrorin classAMQPFederation- Parameters:
cause- The error that caused the resource creation to fail.
-
signalError
protected void signalError(Exception cause)
Description copied from class:AMQPFederationError signaling API that must be implemented by the specific federation implementation to handle errors encountered during normal operations.- Specified by:
signalErrorin classAMQPFederation- Parameters:
cause- The error that caused the operation to fail.
-
-