Class AMQPBridgeAddressPolicy
java.lang.Object
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgePolicy
org.apache.activemq.artemis.protocol.amqp.connect.bridge.AMQPBridgeAddressPolicy
- All Implemented Interfaces:
BiPredicate<String, RoutingType>
public final class AMQPBridgeAddressPolicy
extends AMQPBridgePolicy
implements BiPredicate<String, RoutingType>
Policy used for bridging addresses between peers.
-
Constructor Summary
ConstructorsConstructorDescriptionAMQPBridgeAddressPolicy(String policyName, boolean includeDivertBindings, boolean useDurableSubscriptions, Integer priority, String filter, String remoteAddress, String remoteAddressPrefix, String remoteAddressSuffix, Collection<org.apache.qpid.proton.amqp.Symbol> remoteTerminusCapabilities, Collection<String> includeAddresses, Collection<String> excludeAddresses, Map<String, Object> properties, TransformerConfiguration transformerConfig, WildcardConfiguration wildcardConfig) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleantest(String address, RoutingType type) booleantest(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) Convenience test method for those who have anAddressInfoobject but don't want to deal with theSimpleStringobject or any null checks.Methods inherited from class AMQPBridgePolicy
getFilter, getPolicyName, getPriority, getProperties, getRemoteAddress, getRemoteAddressPrefix, getRemoteAddressSuffix, getRemoteTerminusCapabilities, getTransformerConfigurationMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiPredicate
and, negate, or
-
Constructor Details
-
AMQPBridgeAddressPolicy
public AMQPBridgeAddressPolicy(String policyName, boolean includeDivertBindings, boolean useDurableSubscriptions, Integer priority, String filter, String remoteAddress, String remoteAddressPrefix, String remoteAddressSuffix, Collection<org.apache.qpid.proton.amqp.Symbol> remoteTerminusCapabilities, Collection<String> includeAddresses, Collection<String> excludeAddresses, Map<String, Object> properties, TransformerConfiguration transformerConfig, WildcardConfiguration wildcardConfig)
-
-
Method Details
-
isIncludeDivertBindings
public boolean isIncludeDivertBindings() -
isUseDurableSubscriptions
public boolean isUseDurableSubscriptions() -
test
public boolean test(org.apache.activemq.artemis.core.server.impl.AddressInfo addressInfo) Convenience test method for those who have anAddressInfoobject but don't want to deal with theSimpleStringobject or any null checks.- Parameters:
addressInfo- The address info to check which if null will result in a negative result.- Returns:
trueif the address value matches this configured policy.
-
test
- Specified by:
testin interfaceBiPredicate<String, RoutingType>
-