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
ByteBufferStorageException
public void release()
public void close()
close
in interface IByteBufferStorageCursor
public long getPosition()
getPosition
in interface IByteBufferStorageCursor
public void movePosition(long offset)
movePosition
in interface IByteBufferStorageCursor
public byte readByte()
readByte
in interface IByteBufferStorageCursor
public void readBytes(byte[] result, int offset, int length)
readBytes
in interface IByteBufferStorageCursor
public int readInt()
readInt
in interface IByteBufferStorageCursor
public long readLong()
readLong
in interface IByteBufferStorageCursor
public void setPosition(long position)
setPosition
in interface IByteBufferStorageCursor
public void writeByte(byte value)
writeByte
in interface IByteBufferStorageCursor
public void writeBytes(byte[] array, int offset, int length)
writeBytes
in interface IByteBufferStorageCursor
public void writeInt(int value)
writeInt
in interface IByteBufferStorageCursor
public void writeLong(long value)
writeLong
in interface IByteBufferStorageCursor
public boolean isSegmentSealedForWriting()
public void clearStorageCursor()
Copyright © GigaSpaces.