|
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
setMessageHandler(handler)
to handle incoming messages asynchronously.
@Deprecated public class MessageFilter
MessageFilter
class is designed for filtering messages using protocol description and endpoint
name as evaluation criteria.
Constructor Summary | |
---|---|
MessageFilter()
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(boolean isNegated)
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(boolean isNegated,
ProtocolDescription theProtocolDescription)
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(boolean isNegated,
ProtocolDescription theProtocolDescription,
java.lang.String theEndpointName)
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(int protocolId)
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(ProtocolDescription theProtocolDescription)
Deprecated. Creates an instance of MessageFilter class. |
|
MessageFilter(ProtocolDescription theProtocolDescription,
java.lang.String theEndpointName)
Deprecated. Creates an instance of MessageFilter class. |
Method Summary | |
---|---|
protected boolean |
evaluate(Message message)
Deprecated. Evaluates a message using protocol description, endpoint name, and protocolId as criteria. |
java.lang.String |
getEndpointName()
Deprecated. Gets endpoint name. |
ProtocolDescription |
getProtocolDescription()
Deprecated. Gets the protocol description. |
java.lang.Integer |
getProtocolId()
Deprecated. Gets the value of the protocol's unique identifier. |
void |
setEndpointName(java.lang.String theEndpointName)
Deprecated. Sets endpoint name for filtering. |
void |
setProtocolDescription(ProtocolDescription theProtocolDescription)
Deprecated. Sets protocol description for filtering. |
void |
setProtocolId(java.lang.Integer theProtocolId)
Deprecated. Sets the value of the protocol's unique identifier. |
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 MessageFilter(boolean isNegated, ProtocolDescription theProtocolDescription, java.lang.String theEndpointName)
MessageFilter
class.
isNegated
- If true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationtheProtocolDescription
- Description of protocoltheEndpointName
- Name of endpointpublic MessageFilter(ProtocolDescription theProtocolDescription, java.lang.String theEndpointName)
MessageFilter
class.
theProtocolDescription
- Description of protocoltheEndpointName
- Name of endpointpublic MessageFilter(boolean isNegated, ProtocolDescription theProtocolDescription)
MessageFilter
class.
isNegated
- If true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationtheProtocolDescription
- Description of protocolpublic MessageFilter(ProtocolDescription theProtocolDescription)
MessageFilter
class.
theProtocolDescription
- Description of protocolpublic MessageFilter(int protocolId)
MessageFilter
class.
protocolId
- The protocol's unique identifier as specified by its ProtocolId propertypublic MessageFilter(boolean isNegated)
MessageFilter
class.
isNegated
- If true
- the predicate is considered as negated:
an analog of the logical 'NOT' operationpublic MessageFilter()
MessageFilter
class.
Method Detail |
---|
public ProtocolDescription getProtocolDescription()
public void setProtocolDescription(ProtocolDescription theProtocolDescription)
theProtocolDescription
- new value for protocol description or nullpublic java.lang.String getEndpointName()
public void setEndpointName(java.lang.String theEndpointName)
theEndpointName
- new value for endpoint name or nullpublic java.lang.Integer getProtocolId()
public void setProtocolId(java.lang.Integer theProtocolId)
theProtocolId
- new value for protocolId or nullprotected boolean evaluate(Message message)
evaluate
in class PredicateBase<Message>
message
- A message targeted for evaluation
true
if the filter's properties match their counterparts in
Message, 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 |