org.objectweb.dream.queue
Interface BufferAddFirstLast

All Known Implementing Classes:
AbstractBufferImpl

public interface BufferAddFirstLast

This interface defines methods that must be implemented by a buffer for adding messages to its begining or to its end.


Field Summary
static String ITF_NAME
          The commonly used name to refer to this interface.
 
Method Summary
 void addFirst(Message message)
          Inserts the given message at the beginning of this buffer.
 void addLast(Message message)
          Inserts the given message at the end of this buffer.
 

Field Detail

ITF_NAME

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

See Also:
Constant Field Values
Method Detail

addFirst

public void addFirst(Message message)
              throws InterruptedException
Inserts the given message at the beginning of this buffer.

Parameters:
message - the message to be inserted at the beginning of this buffer.
Throws:
InterruptedException - if it is interrupted while waiting for a message to be removed.

addLast

public void addLast(Message message)
             throws InterruptedException
Inserts the given message at the end of this buffer.

Parameters:
message - the message to be inserted at the end of this buffer.
Throws:
InterruptedException - if it is interrupted while waiting for a message to be removed.


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