public final class InMemoryCursorStreamConfig extends Object
CursorStream
which uses memory for bufferingConstructor and Description |
---|
InMemoryCursorStreamConfig(DataSize initialBufferSize,
DataSize bufferSizeIncrement,
DataSize maxBufferSize)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
DataSize |
getBufferSizeIncrement() |
static InMemoryCursorStreamConfig |
getDefault() |
DataSize |
getInitialBufferSize() |
DataSize |
getMaxBufferSize() |
public InMemoryCursorStreamConfig(DataSize initialBufferSize, DataSize bufferSizeIncrement, DataSize maxBufferSize)
initialBufferSize
- the buffer's initial size. Must be greater than zero bytes.bufferSizeIncrement
- the size that the buffer should gain each time it is expanded. A value of zero bytes means no expansion.
Cannot be negative byte size.maxBufferSize
- the maximum amount of space that the buffer can grow to. Use null
for unbounded bufferspublic static InMemoryCursorStreamConfig getDefault()
public DataSize getInitialBufferSize()
public DataSize getBufferSizeIncrement()
public DataSize getMaxBufferSize()
Copyright © 2018. All rights reserved.