|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.commons.PredicateBase<Message>
com.genesyslab.platform.applicationblocks.commons.broker.MessageFilter
com.genesyslab.platform.applicationblocks.commons.broker.MessageRangeFilter
setMessageHandler(handler)
to handle incoming messages asynchronously.
@Deprecated public class MessageRangeFilter
MessageRangeFilter
uses message id as evaluation criteria.
MessageRangeFilter
contains a set of valid message ids that is used for checking if a message's id
present in the set.
Constructor Summary | |
---|---|
MessageRangeFilter(boolean isNegated,
int[] messagesRange)
Deprecated. Creates an instance of MessageRangeFilter class. |
|
MessageRangeFilter(boolean isNegated,
ProtocolDescription protocolDescription,
int[] messagesRange)
Deprecated. Creates an instance of MessageRangeFilter class. |
|
MessageRangeFilter(int[] messagesRange)
Deprecated. Creates an instance of MessageRangeFilter class. |
|
MessageRangeFilter(ProtocolDescription protocolDescription,
int[] messagesRange)
Deprecated. Creates an instance of MessageRangeFilter class. |
Method Summary | |
---|---|
protected boolean |
evaluate(Message message)
Deprecated. Evaluates a message using message id as evaluation criteria. |
int[] |
getMessagesRange()
Deprecated. Gets the set of message ids. |
void |
setMessagesRange(int[] messagesRange)
Deprecated. Sets the set of valid message ids. |
Methods inherited from class com.genesyslab.platform.applicationblocks.commons.broker.MessageFilter |
---|
getEndpointName, getProtocolDescription, getProtocolId, setEndpointName, setProtocolDescription, setProtocolId |
Methods inherited from class com.genesyslab.platform.applicationblocks.commons.PredicateBase |
---|
invoke, isNegated, setNegated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageRangeFilter(int[] messagesRange)
MessageRangeFilter
class.
messagesRange
- initializes message rangepublic MessageRangeFilter(boolean isNegated, int[] messagesRange)
MessageRangeFilter
class.
isNegated
- if true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationmessagesRange
- initializes message rangepublic MessageRangeFilter(ProtocolDescription protocolDescription, int[] messagesRange)
MessageRangeFilter
class.
protocolDescription
- initializes protocol descriptionmessagesRange
- initializes message rangepublic MessageRangeFilter(boolean isNegated, ProtocolDescription protocolDescription, int[] messagesRange)
MessageRangeFilter
class.
isNegated
- if true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationprotocolDescription
- initializes protocol descriptionmessagesRange
- initializes message rangeMethod Detail |
---|
public int[] getMessagesRange()
public void setMessagesRange(int[] messagesRange)
messagesRange
- set of message idsprotected boolean evaluate(Message message)
evaluate
in class MessageFilter
message
- a message targeted for evaluation
true
if the obj's message id present in the set of the valid message ids,
otherwise returns false
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |