public static class ResourceService.ReadBufferTask extends ResourceService.FetchResourceTask<UUID,ByteBuffer>
ByteBuffer
and then receives
the data into a local ByteBuffer
.Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
ResourceService.ReadBufferTask(InetSocketAddress addr,
UUID id,
ByteBuffer outbuf) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
call()
Issue a request to the remote service for the
ByteBuffer on
that service which was identified to the constructor and then accept
the data into the local ByteBuffer provided to the
constructor. |
UUID |
logId()
The logical identifier for the resource.
|
ByteBuffer |
logResource()
The resource.
|
transfer
public ResourceService.ReadBufferTask(InetSocketAddress addr, UUID id, ByteBuffer outbuf)
addr
- The Internet address and port at which to connect the
service from which the resource will be read.id
- The id that identifies the source ByteBuffer.outbuf
- The ByteBuffer
to which the data from the remote
source ByteBuffer
will be transferred.public UUID logId()
ResourceService.FetchResourceTask
public ByteBuffer logResource()
ResourceService.FetchResourceTask
public ByteBuffer call() throws Exception
ByteBuffer
on
that service which was identified to the constructor and then accept
the data into the local ByteBuffer
provided to the
constructor.ByteBuffer
. The data read from the remote service are
available for reading from Buffer.position()
to
Buffer.limit()
in the returned buffer.Exception
- if something goes wrong (buffer does not exist, IO error,
overflow in the local buffer when receiving the data from
the remote service, etc.).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.