public interface IRunnableBuffer<E> extends IBuffer<E>
IBuffer
that may be closed. Instances of this interface are
normally drained by a worker thread.Modifier and Type | Method and Description |
---|---|
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. |
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 elementBufferClosedException
- if the buffer has been close()
d.boolean isOpen()
true
if the buffer is open.void close()
void abort(Throwable cause)
cause
- The exception thrown by the processing writing on the buffer.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.