public class StateContextImpl extends Object implements StateContext
currently it exposes incr operations. but we can expose other key/values operations if needed.
| Constructor and Description |
|---|
StateContextImpl(org.apache.bookkeeper.api.kv.Table<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf> table) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
flush()
flush and wait all the updates to be completed.
|
void |
incr(String key,
long amount) |
public StateContextImpl(org.apache.bookkeeper.api.kv.Table<io.netty.buffer.ByteBuf,io.netty.buffer.ByteBuf> table)
public void incr(String key, long amount)
incr in interface StateContextpublic CompletableFuture<Void> flush()
flush in interface StateContextCopyright © 2017–2018 Apache Software Foundation. All rights reserved.