Search in sources :

Example 6 with ByteBufferBackedInputStream

use of voldemort.common.nio.ByteBufferBackedInputStream in project voldemort by voldemort.

the class ClientRequestExecutor method initializeStreams.

@Override
protected void initializeStreams(int socketBufferSize, CommBufferSizeStats commBufferStats) {
    bufferContainer = new ByteBufferContainer(socketBufferSize, resizeThreshold, commBufferStats.getCommReadBufferSizeTracker());
    this.inputStream = new ByteBufferBackedInputStream(bufferContainer);
    this.outputStream = new ByteBufferBackedOutputStream(bufferContainer);
}
Also used : ByteBufferBackedOutputStream(voldemort.common.nio.ByteBufferBackedOutputStream) ByteBufferContainer(voldemort.common.nio.ByteBufferContainer) ByteBufferBackedInputStream(voldemort.common.nio.ByteBufferBackedInputStream)

Aggregations

ByteBufferBackedInputStream (voldemort.common.nio.ByteBufferBackedInputStream)6 DataInputStream (java.io.DataInputStream)4 IOException (java.io.IOException)4 VoldemortException (voldemort.VoldemortException)4 ByteBufferBackedOutputStream (voldemort.common.nio.ByteBufferBackedOutputStream)2 ByteBufferContainer (voldemort.common.nio.ByteBufferContainer)2 NoSuchCapabilityException (voldemort.store.NoSuchCapabilityException)1 PersistenceFailureException (voldemort.store.PersistenceFailureException)1 StoreNotFoundException (voldemort.store.StoreNotFoundException)1 StoreOperationFailureException (voldemort.store.StoreOperationFailureException)1 ConfigurationException (voldemort.utils.ConfigurationException)1 ObsoleteVersionException (voldemort.versioning.ObsoleteVersionException)1