org.objectweb.dream.queue
Interface BufferAttributeControllerAscendingSequenceNumber
- All Superinterfaces:
- AttributeController, BufferAttributeController, BufferAttributeControllerSorted
- All Known Implementing Classes:
- BufferAscendingSequenceNumberImpl
public interface BufferAttributeControllerAscendingSequenceNumber
- extends BufferAttributeControllerSorted
Attribute controller for buffers that sort messages using an ascending
sequence number. It allows getting/setting the sequence number of the last
delivered message.
Method Summary |
long |
getLastInSequence()
Returns the sequence number of the last delivered message. |
void |
setLastInSequence(long lastInSequence)
Sets the sequence number of the last delivered message. |
getLastInSequence
long getLastInSequence()
throws InterruptedException
- Returns the sequence number of the last delivered message.
- Returns:
- the sequence number of the last delivered message.
- Throws:
InterruptedException
- if it is interrupted while waiting for the
mutex to be acquired.
setLastInSequence
void setLastInSequence(long lastInSequence)
throws InterruptedException
- Sets the sequence number of the last delivered message.
- Parameters:
lastInSequence
- the sequence number to be set.
- Throws:
InterruptedException
- if it is interrupted while waiting for the
mutex to be acquired.
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.