org.objectweb.dream.queue.keyed
Interface MissingSequenceNumberKeyBased


public interface MissingSequenceNumberKeyBased

Interface that can be used by a queue sorting messages according to a sequence number (i.e. a long) to specify that sequence numbers are missings. For each method in this interface, a key parameter is specified. For instance, this allows specifying that sequence number 1 is missing for keys A and B.


Field Summary
static String ITF_NAME
          The commonly used name to refer to this interface.
 
Method Summary
 void missingSequenceNumber(long snFrom, long snTo, Object key)
          This method is called to specify that messages ranging from snFrom to snTo are missing for the given key.
 void noLongerMissing(long sn, Object key)
          This method is called to specify that a sequence number is no longer missing for the given key.
 

Field Detail

ITF_NAME

static final String ITF_NAME
The commonly used name to refer to this interface.

See Also:
Constant Field Values
Method Detail

missingSequenceNumber

void missingSequenceNumber(long snFrom,
                           long snTo,
                           Object key)
This method is called to specify that messages ranging from snFrom to snTo are missing for the given key.

Parameters:
snFrom - the first sequence number in sequence that is missing.
snTo - the last sequence number in sequence that is missing.
key - the key for which specified messages are missing.

noLongerMissing

void noLongerMissing(long sn,
                     Object key)
This method is called to specify that a sequence number is no longer missing for the given key.

Parameters:
sn - the sequence number that is no longer missing.
key - the key for which the specified message is no longer missing.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.