Class 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
      void close()  
      void delete​(java.lang.String key)  
      java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync​(java.lang.String key)  
      java.lang.String fqsn()  
      java.nio.ByteBuffer get​(java.lang.String key)  
      java.util.concurrent.CompletableFuture<java.nio.ByteBuffer> getAsync​(java.lang.String key)  
      long getCounter​(java.lang.String key)  
      java.util.concurrent.CompletableFuture<java.lang.Long> getCounterAsync​(java.lang.String key)  
      void incrCounter​(java.lang.String key, long amount)  
      java.util.concurrent.CompletableFuture<java.lang.Void> incrCounterAsync​(java.lang.String key, long amount)  
      void init​(org.apache.pulsar.functions.api.StateStoreContext ctx)  
      java.lang.String name()  
      java.lang.String namespace()  
      void put​(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.String tenant()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • tenant

        public java.lang.String tenant()
        Specified by:
        tenant in interface org.apache.pulsar.functions.api.StateStore
      • namespace

        public java.lang.String namespace()
        Specified by:
        namespace in interface org.apache.pulsar.functions.api.StateStore
      • name

        public java.lang.String name()
        Specified by:
        name in interface org.apache.pulsar.functions.api.StateStore
      • fqsn

        public java.lang.String fqsn()
        Specified by:
        fqsn in interface org.apache.pulsar.functions.api.StateStore
      • init

        public void init​(org.apache.pulsar.functions.api.StateStoreContext ctx)
        Specified by:
        init in interface org.apache.pulsar.functions.api.StateStore
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.apache.pulsar.functions.api.StateStore
      • put

        public void put​(java.lang.String key,
                        java.nio.ByteBuffer value)
        Specified by:
        put in interface org.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:
        putAsync in interface org.apache.pulsar.functions.api.state.ByteBufferStateStore
      • delete

        public void delete​(java.lang.String key)
        Specified by:
        delete in interface org.apache.pulsar.functions.api.state.ByteBufferStateStore
      • deleteAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> deleteAsync​(java.lang.String key)
        Specified by:
        deleteAsync in interface org.apache.pulsar.functions.api.state.ByteBufferStateStore
      • get

        public java.nio.ByteBuffer get​(java.lang.String key)
        Specified by:
        get in interface org.apache.pulsar.functions.api.state.ByteBufferStateStore
      • getAsync

        public java.util.concurrent.CompletableFuture<java.nio.ByteBuffer> getAsync​(java.lang.String key)
        Specified by:
        getAsync in interface org.apache.pulsar.functions.api.state.ByteBufferStateStore
      • incrCounter

        public void incrCounter​(java.lang.String key,
                                long amount)
        Specified by:
        incrCounter in interface org.apache.pulsar.functions.api.state.CounterStateStore
      • incrCounterAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> incrCounterAsync​(java.lang.String key,
                                                                                       long amount)
        Specified by:
        incrCounterAsync in interface org.apache.pulsar.functions.api.state.CounterStateStore
      • getCounter

        public long getCounter​(java.lang.String key)
        Specified by:
        getCounter in interface org.apache.pulsar.functions.api.state.CounterStateStore
      • getCounterAsync

        public java.util.concurrent.CompletableFuture<java.lang.Long> getCounterAsync​(java.lang.String key)
        Specified by:
        getCounterAsync in interface org.apache.pulsar.functions.api.state.CounterStateStore