public class ChunkBasedByteStorageFactory extends java.lang.Object implements ByteStorageFactory
ByteStorageFactory that creates ByteStorage instances that keep all data in
memory.| Constructor and Description |
|---|
ChunkBasedByteStorageFactory(ByteStorageFactory delegate)
Creates a new factory whose storages are created using delegates from the given factory.
|
ChunkBasedByteStorageFactory(ByteStorageFactory delegate,
java.lang.Long maxChunkSize)
Creates a new factory whose storages use the given maximum chunk size and are created using
delegates from the given factory.
|
| Modifier and Type | Method and Description |
|---|---|
ByteStorage |
create()
Creates a new storage.
|
public ChunkBasedByteStorageFactory(ByteStorageFactory delegate)
public ChunkBasedByteStorageFactory(ByteStorageFactory delegate, @Nullable java.lang.Long maxChunkSize)
public ByteStorage create() throws java.io.IOException
ByteStorageFactorycreate in interface ByteStorageFactoryjava.io.IOException