IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.automaton
Interface Buffer

All Known Implementing Classes:
Queue

public interface Buffer

A generic interface for a buffer that holds any Java objects.


Method Summary
 java.lang.Object get()
          Get an object from the Buffer
 void put(java.lang.Object obj)
          Put an object into the Buffer
 

Method Detail

get

public java.lang.Object get()
                     throws java.lang.InterruptedException
Get an object from the Buffer

Returns:
java.lang.Object
Throws:
java.lang.InterruptedException - Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it using the interrupt method in class Thread

put

public void put(java.lang.Object obj)
         throws java.lang.InterruptedException
Put an object into the Buffer

Parameters:
obj - java.lang.Object
Throws:
java.lang.InterruptedException - Thrown when a thread is waiting, sleeping, or otherwise paused for a long time and another thread interrupts it using the interrupt method in class Thread.

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005