Package org.apache.activemq.command
Class NetworkBridgeFilter
java.lang.Object
org.apache.activemq.command.NetworkBridgeFilter
- All Implemented Interfaces:
DataStructure,BooleanExpression,Expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intstatic final byteprotected intprotected BrokerId -
Constructor Summary
ConstructorsConstructorDescriptionNetworkBridgeFilter(ConsumerInfo consumerInfo, BrokerId networkBrokerId, int messageTTL, int consumerTTL) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanevaluate(MessageEvaluationContext message) intbyteintintstatic booleanbooleanbooleanprotected booleanmatchesForwardingFilter(Message message, MessageEvaluationContext mec) voidsetConsumerTTL(int consumerTTL) voidsetMessageTTL(int messageTTL) voidsetNetworkBrokerId(BrokerId remoteBrokerPath) voidsetNetworkTTL(int networkTTL)
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
networkBrokerId
-
messageTTL
protected int messageTTL -
consumerTTL
protected int consumerTTL
-
-
Constructor Details
-
NetworkBridgeFilter
public NetworkBridgeFilter() -
NetworkBridgeFilter
public NetworkBridgeFilter(ConsumerInfo consumerInfo, BrokerId networkBrokerId, int messageTTL, int consumerTTL)
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAwarein interfaceDataStructure
-
matches
- Specified by:
matchesin interfaceBooleanExpression- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
jakarta.jms.JMSException
-
evaluate
- Specified by:
evaluatein interfaceExpression- Returns:
- the value of this expression
- Throws:
jakarta.jms.JMSException
-
matchesForwardingFilter
-
isAdvisoryInterpretedByNetworkBridge
-
contains
-
getNetworkTTL
public int getNetworkTTL() -
setNetworkTTL
public void setNetworkTTL(int networkTTL) -
getNetworkBrokerId
-
setNetworkBrokerId
-
setMessageTTL
public void setMessageTTL(int messageTTL) -
getMessageTTL
public int getMessageTTL() -
setConsumerTTL
public void setConsumerTTL(int consumerTTL) -
getConsumerTTL
public int getConsumerTTL()
-