|
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.MessageIdFilter
setMessageHandler(handler)
to handle incoming messages asynchronously.
@Deprecated public final class MessageIdFilter
MessageIdFilter
uses message id as evaluation criteria.
Constructor Summary | |
---|---|
MessageIdFilter(boolean isNegated,
int theMessageId)
Deprecated. Creates an instance of MessageIdFilter class. |
|
MessageIdFilter(boolean isNegated,
ProtocolDescription theProtocolDescription,
int theMessageId)
Deprecated. Creates an instance of MessageIdFilter class. |
|
MessageIdFilter(int theMessageId)
Deprecated. Creates an instance of MessageIdFilter class. |
|
MessageIdFilter(ProtocolDescription theProtocolDescription,
int theMessageId)
Deprecated. Creates an instance of MessageIdFilter class. |
Method Summary | |
---|---|
protected boolean |
evaluate(Message message)
Deprecated. Evaluates a message using message id as evaluation criteria. |
int |
getMessageId()
Deprecated. Gets message id. |
void |
setMessageId(int value)
Deprecated. Sets message id. |
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 MessageIdFilter(int theMessageId)
MessageIdFilter
class.
theMessageId
- initializes message idpublic MessageIdFilter(boolean isNegated, int theMessageId)
MessageIdFilter
class.
isNegated
- if true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationtheMessageId
- initializes message idpublic MessageIdFilter(ProtocolDescription theProtocolDescription, int theMessageId)
MessageIdFilter
class.
theProtocolDescription
- initializes protocol descriptiontheMessageId
- initializes message id propertypublic MessageIdFilter(boolean isNegated, ProtocolDescription theProtocolDescription, int theMessageId)
MessageIdFilter
class.
isNegated
- if true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationtheProtocolDescription
- initializes protocol descriptiontheMessageId
- initializes message idMethod Detail |
---|
public int getMessageId()
public void setMessageId(int value)
value
- new value for message idprotected boolean evaluate(Message message)
evaluate
in class MessageFilter
message
- A message targeted for evaluation
true
if message id, protocol description and endpoint name of the message are equal
to the message id protocol description and endpoint name of the message id filter, 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 |