Package org.apache.bookkeeper.client
Class LedgerDeleteOp.DeleteBuilderImpl
- java.lang.Object
-
- org.apache.bookkeeper.client.LedgerDeleteOp.DeleteBuilderImpl
-
- All Implemented Interfaces:
DeleteBuilder
,OpBuilder<java.lang.Void>
- Enclosing class:
- LedgerDeleteOp
static class LedgerDeleteOp.DeleteBuilderImpl extends java.lang.Object implements DeleteBuilder
-
-
Constructor Summary
Constructors Constructor Description DeleteBuilderImpl(BookKeeper bk)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>
execute()
Start the operation and return an handle to the result.DeleteBuilder
withLedgerId(long ledgerId)
Set the id of the ledger to be deleted.
-
-
-
Constructor Detail
-
DeleteBuilderImpl
DeleteBuilderImpl(BookKeeper bk)
-
-
Method Detail
-
withLedgerId
public DeleteBuilder withLedgerId(long ledgerId)
Description copied from interface:DeleteBuilder
Set the id of the ledger to be deleted.- Specified by:
withLedgerId
in interfaceDeleteBuilder
- Returns:
- the builder itself
-
execute
public java.util.concurrent.CompletableFuture<java.lang.Void> execute()
Description copied from interface:OpBuilder
Start the operation and return an handle to the result.- Specified by:
execute
in interfaceOpBuilder<java.lang.Void>
- Returns:
- an handle to access the result of the operation
- See Also:
to have a simple method to access the result
-
-