public class StorageSegment.SegmentCursor extends Object implements IByteBufferStorageCursor
| Constructor and Description |
|---|
SegmentCursor(IByteBufferStorageCursor cursor) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire() |
void |
clearStorageCursor() |
void |
close() |
long |
getPosition() |
void |
initIfNeeded() |
boolean |
isSegmentSealedForWriting() |
void |
movePosition(long offset) |
byte |
readByte() |
void |
readBytes(byte[] result,
int offset,
int length) |
int |
readInt() |
long |
readLong() |
void |
release() |
void |
setAsWriter() |
void |
setPosition(long position) |
boolean |
tryAcquire() |
void |
writeByte(byte value) |
void |
writeBytes(byte[] array,
int offset,
int length) |
void |
writeInt(int value) |
void |
writeLong(long value) |
public SegmentCursor(IByteBufferStorageCursor cursor)
public void setAsWriter()
public boolean tryAcquire()
public void acquire()
public void initIfNeeded()
throws ByteBufferStorageException
ByteBufferStorageExceptionpublic void release()
public void close()
close in interface IByteBufferStorageCursorpublic long getPosition()
getPosition in interface IByteBufferStorageCursorpublic void movePosition(long offset)
movePosition in interface IByteBufferStorageCursorpublic byte readByte()
readByte in interface IByteBufferStorageCursorpublic void readBytes(byte[] result,
int offset,
int length)
readBytes in interface IByteBufferStorageCursorpublic int readInt()
readInt in interface IByteBufferStorageCursorpublic long readLong()
readLong in interface IByteBufferStorageCursorpublic void setPosition(long position)
setPosition in interface IByteBufferStorageCursorpublic void writeByte(byte value)
writeByte in interface IByteBufferStorageCursorpublic void writeBytes(byte[] array,
int offset,
int length)
writeBytes in interface IByteBufferStorageCursorpublic void writeInt(int value)
writeInt in interface IByteBufferStorageCursorpublic void writeLong(long value)
writeLong in interface IByteBufferStorageCursorpublic boolean isSegmentSealedForWriting()
public void clearStorageCursor()
Copyright © GigaSpaces.