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 int
static final byte
protected int
protected BrokerId
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkBridgeFilter
(ConsumerInfo consumerInfo, BrokerId networkBrokerId, int messageTTL, int consumerTTL) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
evaluate
(MessageEvaluationContext message) int
byte
int
int
static boolean
boolean
boolean
protected boolean
matchesForwardingFilter
(Message message, MessageEvaluationContext mec) void
setConsumerTTL
(int consumerTTL) void
setMessageTTL
(int messageTTL) void
setNetworkBrokerId
(BrokerId remoteBrokerPath) void
setNetworkTTL
(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:
getDataStructureType
in interfaceDataStructure
- Returns:
- The type of the data structure
-
isMarshallAware
public boolean isMarshallAware()- Specified by:
isMarshallAware
in interfaceDataStructure
-
matches
- Specified by:
matches
in interfaceBooleanExpression
- Returns:
- true if the expression evaluates to Boolean.TRUE.
- Throws:
jakarta.jms.JMSException
-
evaluate
- Specified by:
evaluate
in 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()
-