public static class TcpStorageRequest.WriteRequest extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CSIZE |
static int |
FIELDS_SIZE |
| Constructor and Description |
|---|
WriteRequest() |
WriteRequest(int key,
long address,
int length,
ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAddress() |
ByteBuffer |
getBuffer() |
int |
getKey() |
int |
length() |
int |
size() |
void |
update(ByteBuffer buffer) |
int |
write(ByteBuffer buffer) |
public static final int FIELDS_SIZE
public static final int CSIZE
public WriteRequest()
public WriteRequest(int key,
long address,
int length,
ByteBuffer buffer)
public long getAddress()
public int length()
public int getKey()
public ByteBuffer getBuffer()
public int size()
public void update(ByteBuffer buffer) throws IOException
IOExceptionpublic int write(ByteBuffer buffer) throws IOException
IOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.