Class ChunkBasedByteStorageFactory

    • Constructor Detail

      • ChunkBasedByteStorageFactory

        public ChunkBasedByteStorageFactory​(ByteStorageFactory delegate)
        Creates a new factory whose storages are created using delegates from the given factory.
      • ChunkBasedByteStorageFactory

        public ChunkBasedByteStorageFactory​(ByteStorageFactory delegate,
                                            @Nullable
                                            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.
    • Method Detail

      • create

        public ByteStorage create()
                           throws java.io.IOException
        Description copied from interface: ByteStorageFactory
        Creates a new storage.
        Specified by:
        create in interface ByteStorageFactory
        Returns:
        a storage that should be closed when no longer used.
        Throws:
        java.io.IOException