Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.commons.broker
Class MessageIdFilter

java.lang.Object
  extended by com.genesyslab.platform.applicationblocks.commons.PredicateBase<Message>
      extended by com.genesyslab.platform.applicationblocks.commons.broker.MessageFilter
          extended by com.genesyslab.platform.applicationblocks.commons.broker.MessageIdFilter
All Implemented Interfaces:
Predicate<Message>

Deprecated. Message Broker Application Block is deprecated. Use setMessageHandler(handler) to handle incoming messages asynchronously.

@Deprecated
public final class MessageIdFilter
extends MessageFilter

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

MessageIdFilter

public MessageIdFilter(int theMessageId)
Deprecated. 
Creates an instance of MessageIdFilter class.

Parameters:
theMessageId - initializes message id

MessageIdFilter

public MessageIdFilter(boolean isNegated,
                       int theMessageId)
Deprecated. 
Creates an instance of MessageIdFilter class.

Parameters:
isNegated - if true - the predicate is considered as negated: an analog of the logical 'NOT' operation
theMessageId - initializes message id

MessageIdFilter

public MessageIdFilter(ProtocolDescription theProtocolDescription,
                       int theMessageId)
Deprecated. 
Creates an instance of MessageIdFilter class.

Parameters:
theProtocolDescription - initializes protocol description
theMessageId - initializes message id property

MessageIdFilter

public MessageIdFilter(boolean isNegated,
                       ProtocolDescription theProtocolDescription,
                       int theMessageId)
Deprecated. 
Creates an instance of MessageIdFilter class.

Parameters:
isNegated - if true - the predicate is considered as negated: an analog of the logical 'NOT' operation
theProtocolDescription - initializes protocol description
theMessageId - initializes message id
Method Detail

getMessageId

public int getMessageId()
Deprecated. 
Gets message id.

Returns:
message id

setMessageId

public void setMessageId(int value)
Deprecated. 
Sets message id.

Parameters:
value - new value for message id

evaluate

protected boolean evaluate(Message message)
Deprecated. 
Evaluates a message using message id as evaluation criteria.

Overrides:
evaluate in class MessageFilter
Parameters:
message - A message targeted for evaluation
Returns:
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

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.