@InterfaceAudience.Public @InterfaceStability.Unstable public interface WriteAdvHandle extends ReadHandle, ForceableHandle
WriteHandle| Modifier and Type | Method and Description |
|---|---|
default long |
write(long entryId,
byte[] data)
Add entry synchronously to an open ledger.
|
default long |
write(long entryId,
byte[] data,
int offset,
int length)
Add entry synchronously to an open ledger.
|
default long |
write(long entryId,
io.netty.buffer.ByteBuf data)
Add entry asynchronously to an open ledger.
|
default long |
write(long entryId,
java.nio.ByteBuffer data)
Add entry synchronously to an open ledger.
|
default java.util.concurrent.CompletableFuture<java.lang.Long> |
writeAsync(long entryId,
byte[] data)
Add entry asynchronously to an open ledger.
|
default java.util.concurrent.CompletableFuture<java.lang.Long> |
writeAsync(long entryId,
byte[] data,
int offset,
int length)
Add entry asynchronously to an open ledger.
|
java.util.concurrent.CompletableFuture<java.lang.Long> |
writeAsync(long entryId,
io.netty.buffer.ByteBuf data)
Add entry asynchronously to an open ledger.
|
default java.util.concurrent.CompletableFuture<java.lang.Long> |
writeAsync(long entryId,
java.nio.ByteBuffer data)
Add entry asynchronously to an open ledger.
|
getLastAddConfirmed, getLength, isClosed, read, readAsync, readLastAddConfirmed, readLastAddConfirmedAndEntry, readLastAddConfirmedAndEntryAsync, readLastAddConfirmedAsync, readUnconfirmed, readUnconfirmedAsync, tryReadLastAddConfirmed, tryReadLastAddConfirmedAsyncclose, closeAsync, getId, getLedgerMetadataforcedefault java.util.concurrent.CompletableFuture<java.lang.Long> writeAsync(long entryId,
java.nio.ByteBuffer data)
entryId - entryId to be addeddata - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.default long write(long entryId,
java.nio.ByteBuffer data)
throws BKException,
java.lang.InterruptedException
entryId - entryId to be addeddata - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.BKExceptionjava.lang.InterruptedExceptiondefault java.util.concurrent.CompletableFuture<java.lang.Long> writeAsync(long entryId,
byte[] data)
entryId - entryId to be added.data - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.entryId.default long write(long entryId,
byte[] data)
throws BKException,
java.lang.InterruptedException
entryId - entryId to be added.data - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.entryId.BKExceptionjava.lang.InterruptedExceptiondefault java.util.concurrent.CompletableFuture<java.lang.Long> writeAsync(long entryId,
byte[] data,
int offset,
int length)
entryId - entryId to be added.data - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.offset - the offset of the bytes arraylength - the length to data to writeentryId.default long write(long entryId,
byte[] data,
int offset,
int length)
throws BKException,
java.lang.InterruptedException
entryId - entryId to be added.data - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.offset - the offset of the bytes arraylength - the length to data to writeentryId.BKExceptionjava.lang.InterruptedExceptionjava.util.concurrent.CompletableFuture<java.lang.Long> writeAsync(long entryId,
io.netty.buffer.ByteBuf data)
entryId - entryId to be addeddata - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.default long write(long entryId,
io.netty.buffer.ByteBuf data)
throws BKException,
java.lang.InterruptedException
entryId - entryId to be addeddata - array of bytes to be written
do not reuse the buffer, bk-client will release it appropriately.BKExceptionjava.lang.InterruptedExceptionCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.