Class FederationReceiveFromQueuePolicy
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.federation.FederationReceiveFromQueuePolicy
- All Implemented Interfaces:
BiPredicate<String,String>, FederationReceiveFromResourcePolicy
public class FederationReceiveFromQueuePolicy
extends Object
implements FederationReceiveFromResourcePolicy, BiPredicate<String,String>
Policy used to provide federation of remote to local broker queues, once created the policy configuration is
immutable.
-
Constructor Summary
ConstructorsConstructorDescriptionFederationReceiveFromQueuePolicy(String name, boolean includeFederated, int priorotyAdjustment, Collection<Map.Entry<String, String>> includeQueues, Collection<Map.Entry<String, String>> excludeQueues, Map<String, Object> properties, TransformerConfiguration transformerConfig, WildcardConfiguration wildcardConfig) -
Method Summary
Modifier and TypeMethodDescriptionReturns the name assigned to this federation policy.Returns the federation type this policy configuration defines.intReturns aMapof properties that were used in the policy configuration.Returns theTransformerConfigurationthat was specified in the policy configuration.booleanbooleanbooleanMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
FederationReceiveFromQueuePolicy
public FederationReceiveFromQueuePolicy(String name, boolean includeFederated, int priorotyAdjustment, Collection<Map.Entry<String, String>> includeQueues, Collection<Map.Entry<String, String>> excludeQueues, Map<String, Object> properties, TransformerConfiguration transformerConfig, WildcardConfiguration wildcardConfig)
-
-
Method Details
-
getPolicyType
Description copied from interface:FederationReceiveFromResourcePolicyReturns the federation type this policy configuration defines.- Specified by:
getPolicyTypein interfaceFederationReceiveFromResourcePolicy- Returns:
- the federation type this policy configuration defines
-
getPolicyName
Description copied from interface:FederationReceiveFromResourcePolicyReturns the name assigned to this federation policy.- Specified by:
getPolicyNamein interfaceFederationReceiveFromResourcePolicy- Returns:
- the name assigned to this federation policy
-
isIncludeFederated
public boolean isIncludeFederated() -
getPriorityAjustment
public int getPriorityAjustment() -
getIncludes
-
getExcludes
-
getProperties
Description copied from interface:FederationReceiveFromResourcePolicyReturns aMapof properties that were used in the policy configuration.- Specified by:
getPropertiesin interfaceFederationReceiveFromResourcePolicy- Returns:
- a
Mapof properties that were used in the policy configuration
-
getTransformerConfiguration
Description copied from interface:FederationReceiveFromResourcePolicyReturns theTransformerConfigurationthat was specified in the policy configuration.- Specified by:
getTransformerConfigurationin interfaceFederationReceiveFromResourcePolicy- Returns:
- the
TransformerConfigurationthat was specified in the policy configuration
-
testQueue
-
test
-