Interface Store.EntryWriter
- Enclosing interface:
Store
public static interface Store.EntryWriter
A writer for an entry's data stream.
-
Method Summary
Modifier and TypeMethodDescriptiondefault intwrite(ByteBuffer src) Synchronous variant ofwrite(ByteBuffer, Executor).default CompletableFuture<Integer> write(ByteBuffer src, Executor executor) Writes all the bytes from the given buffer into the editor's data stream, and returns the number of bytes actually written.default longwrite(List<ByteBuffer> srcs) Synchronous variant ofwrite(List, Executor).write(List<ByteBuffer> srcs, Executor executor) Writes all the bytes from the given buffers into the editor's data stream, in sequential order, and returns the number of bytes actually written.
-
Method Details
-
write
Synchronous variant ofwrite(ByteBuffer, Executor).- Throws:
IllegalStateException- if the editor is closed or if a write is currently in progress and the store doesn't allow concurrent writesIOException
-
write
Writes all the bytes from the given buffer into the editor's data stream, and returns the number of bytes actually written.- Throws:
IllegalStateException- if the editor is closed or if a write is currently in progress and the store doesn't allow concurrent writes
-
write
Synchronous variant ofwrite(List, Executor).- Throws:
IllegalStateException- if the editor is closed or if a write is currently in progress and the store doesn't allow concurrent writesIOException
-
write
Writes all the bytes from the given buffers into the editor's data stream, in sequential order, and returns the number of bytes actually written.- Throws:
IllegalStateException- if the editor is closed or if a write is currently in progress and the store doesn't allow concurrent writes
-