Class PulsarMetadataStateStoreImpl
- java.lang.Object
-
- org.apache.pulsar.functions.instance.state.PulsarMetadataStateStoreImpl
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.apache.pulsar.functions.api.state.ByteBufferStateStore,org.apache.pulsar.functions.api.state.CounterStateStore,org.apache.pulsar.functions.api.StateStore,DefaultStateStore
public class PulsarMetadataStateStoreImpl extends java.lang.Object implements DefaultStateStore
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddelete(java.lang.String key)java.util.concurrent.CompletableFuture<java.lang.Void>deleteAsync(java.lang.String key)java.lang.Stringfqsn()java.nio.ByteBufferget(java.lang.String key)java.util.concurrent.CompletableFuture<java.nio.ByteBuffer>getAsync(java.lang.String key)longgetCounter(java.lang.String key)java.util.concurrent.CompletableFuture<java.lang.Long>getCounterAsync(java.lang.String key)voidincrCounter(java.lang.String key, long amount)java.util.concurrent.CompletableFuture<java.lang.Void>incrCounterAsync(java.lang.String key, long amount)voidinit(org.apache.pulsar.functions.api.StateStoreContext ctx)java.lang.Stringname()java.lang.Stringnamespace()voidput(java.lang.String key, java.nio.ByteBuffer value)java.util.concurrent.CompletableFuture<java.lang.Void>putAsync(java.lang.String key, java.nio.ByteBuffer value)java.lang.Stringtenant()
-
-
-
Method Detail
-
tenant
public java.lang.String tenant()
- Specified by:
tenantin interfaceorg.apache.pulsar.functions.api.StateStore
-
namespace
public java.lang.String namespace()
- Specified by:
namespacein interfaceorg.apache.pulsar.functions.api.StateStore
-
name
public java.lang.String name()
- Specified by:
namein interfaceorg.apache.pulsar.functions.api.StateStore
-
fqsn
public java.lang.String fqsn()
- Specified by:
fqsnin interfaceorg.apache.pulsar.functions.api.StateStore
-
init
public void init(org.apache.pulsar.functions.api.StateStoreContext ctx)
- Specified by:
initin interfaceorg.apache.pulsar.functions.api.StateStore
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.apache.pulsar.functions.api.StateStore
-
put
public void put(java.lang.String key, java.nio.ByteBuffer value)- Specified by:
putin interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
putAsync
public java.util.concurrent.CompletableFuture<java.lang.Void> putAsync(java.lang.String key, java.nio.ByteBuffer value)- Specified by:
putAsyncin interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
delete
public void delete(java.lang.String key)
- Specified by:
deletein interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
deleteAsync
public java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync(java.lang.String key)
- Specified by:
deleteAsyncin interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
get
public java.nio.ByteBuffer get(java.lang.String key)
- Specified by:
getin interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
getAsync
public java.util.concurrent.CompletableFuture<java.nio.ByteBuffer> getAsync(java.lang.String key)
- Specified by:
getAsyncin interfaceorg.apache.pulsar.functions.api.state.ByteBufferStateStore
-
incrCounter
public void incrCounter(java.lang.String key, long amount)- Specified by:
incrCounterin interfaceorg.apache.pulsar.functions.api.state.CounterStateStore
-
incrCounterAsync
public java.util.concurrent.CompletableFuture<java.lang.Void> incrCounterAsync(java.lang.String key, long amount)- Specified by:
incrCounterAsyncin interfaceorg.apache.pulsar.functions.api.state.CounterStateStore
-
getCounter
public long getCounter(java.lang.String key)
- Specified by:
getCounterin interfaceorg.apache.pulsar.functions.api.state.CounterStateStore
-
getCounterAsync
public java.util.concurrent.CompletableFuture<java.lang.Long> getCounterAsync(java.lang.String key)
- Specified by:
getCounterAsyncin interfaceorg.apache.pulsar.functions.api.state.CounterStateStore
-
-