Platform SDK Java 8.5 API Reference

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

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.MessageRangeFilter
All Implemented Interfaces:
Predicate<Message>

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

@Deprecated
public class MessageRangeFilter
extends MessageFilter

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

MessageRangeFilter

public MessageRangeFilter(int[] messagesRange)
Deprecated. 
Creates an instance of MessageRangeFilter class.

Parameters:
messagesRange - initializes message range

MessageRangeFilter

public MessageRangeFilter(boolean isNegated,
                          int[] messagesRange)
Deprecated. 
Creates an instance of MessageRangeFilter class.

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

MessageRangeFilter

public MessageRangeFilter(ProtocolDescription protocolDescription,
                          int[] messagesRange)
Deprecated. 
Creates an instance of MessageRangeFilter class.

Parameters:
protocolDescription - initializes protocol description
messagesRange - initializes message range

MessageRangeFilter

public MessageRangeFilter(boolean isNegated,
                          ProtocolDescription protocolDescription,
                          int[] messagesRange)
Deprecated. 
Creates an instance of MessageRangeFilter class.

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

getMessagesRange

public int[] getMessagesRange()
Deprecated. 
Gets the set of message ids.

Returns:
set of message ids

setMessagesRange

public void setMessagesRange(int[] messagesRange)
Deprecated. 
Sets the set of valid message ids.

Parameters:
messagesRange - set of message ids

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 the obj's message id present in the set of the valid message ids, 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.