|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRunnableBuffer<E>
An IBuffer that may be closed. Instances of this interface are
normally drained by a worker thread.
| Method Summary | |
|---|---|
void |
abort(Throwable cause)
Signal abnormal termination of the process writing on the buffer. |
void |
add(E e)
Add an element to the buffer. |
void |
close()
Signal that no more data will be written on this buffer (this is required in order for the #iterator() to know when no more data will be
made available). |
Future |
getFuture()
The Future for the worker task. |
boolean |
isOpen()
Return true if the buffer is open. |
| Methods inherited from interface com.bigdata.relation.accesspath.IBuffer |
|---|
flush, isEmpty, reset, size |
| Method Detail |
|---|
void add(E e)
Note: This method is constrained to throw the specified exception if the
buffer has been close()d.
add in interface IBuffer<E>e - The element
BufferClosedException - if the buffer has been close()d.boolean isOpen()
true if the buffer is open.
void close()
#iterator() to know when no more data will be
made available).
void abort(Throwable cause)
#iterator() will report the cause
via a wrapped exception the next time any method on its interface is
invoked. The internal queue may be cleared once this method is invoked.
cause - The exception thrown by the processing writing on the buffer.Future getFuture()
Future for the worker task.
Future -or- null if no Future
has been set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||