com.crankuptheamps.client
Interface BlockPublishStore.Buffer
- All Known Implementing Classes:
- ArrayStoreBuffer, MemoryStoreBuffer
- Enclosing class:
- BlockPublishStore
public static interface BlockPublishStore.Buffer
getSize
long getSize()
throws IOException
- Throws:
IOException
setSize
void setSize(long newSize)
throws IOException
- Throws:
IOException
getPosition
long getPosition()
throws IOException
- Throws:
IOException
setPosition
void setPosition(long position)
throws IOException
- Throws:
IOException
putByte
void putByte(byte b)
throws IOException
- Throws:
IOException
getByte
byte getByte()
throws IOException
- Throws:
IOException
putInt
void putInt(int i)
throws IOException
- Throws:
IOException
getInt
int getInt()
throws IOException
- Throws:
IOException
putLong
void putLong(long l)
throws IOException
- Throws:
IOException
getLong
long getLong()
throws IOException
- Throws:
IOException
putBytes
void putBytes(BlockPublishStore.ByteSequence bytes)
throws IOException
- Throws:
IOException
getBytes
void getBytes(BlockPublishStore.ByteSequence outBytes)
throws IOException
- Throws:
IOException
zero
void zero(long offset,
int length)
throws IOException
- Throws:
IOException
setResizeHandler
void setResizeHandler(PublishStoreResizeHandler handler,
Store store)