Class ReadableByteChannelFromBlockingQueue
java.lang.Object
org.aksw.jena_sparql_api.io.binseach.ReadableByteChannelFromBlockingQueue
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Throwableprotected BlockingQueue<ByteBuffer>protected Runnableprotected ByteBufferprotected booleanprotected static final ByteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Supply data to the channel, which will be returned by read operations in sequencevoidcomplete()booleanbooleanisOpen()voidput(ByteBuffer bodyBuffer) intread(ByteBuffer dst)
-
Field Details
-
POISON
-
clientQueue
-
currentBuffer
-
abortException
-
isOpen
protected boolean isOpen -
closeAction
-
-
Constructor Details
-
ReadableByteChannelFromBlockingQueue
public ReadableByteChannelFromBlockingQueue() -
ReadableByteChannelFromBlockingQueue
-
-
Method Details
-
isComplete
public boolean isComplete() -
complete
public void complete() -
put
-
close
Supply data to the channel, which will be returned by read operations in sequence- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Parameters:
data-- Throws:
IOException
-
isOpen
public boolean isOpen() -
read
- Specified by:
readin interfaceReadableByteChannel
-