Class TableViewImpl<T>

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.pulsar.client.api.TableView<T>

    public class TableViewImpl<T>
    extends java.lang.Object
    implements org.apache.pulsar.client.api.TableView<T>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()  
      boolean containsKey​(java.lang.String key)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​T>> entrySet()  
      void forEach​(java.util.function.BiConsumer<java.lang.String,​T> action)  
      void forEachAndListen​(java.util.function.BiConsumer<java.lang.String,​T> action)  
      T get​(java.lang.String key)  
      boolean isEmpty()  
      java.util.Set<java.lang.String> keySet()  
      int size()  
      java.util.Collection<T> values()  
      • Methods inherited from class java.lang.Object

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

      • size

        public int size()
        Specified by:
        size in interface org.apache.pulsar.client.api.TableView<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.apache.pulsar.client.api.TableView<T>
      • containsKey

        public boolean containsKey​(java.lang.String key)
        Specified by:
        containsKey in interface org.apache.pulsar.client.api.TableView<T>
      • get

        public T get​(java.lang.String key)
        Specified by:
        get in interface org.apache.pulsar.client.api.TableView<T>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​T>> entrySet()
        Specified by:
        entrySet in interface org.apache.pulsar.client.api.TableView<T>
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface org.apache.pulsar.client.api.TableView<T>
      • values

        public java.util.Collection<T> values()
        Specified by:
        values in interface org.apache.pulsar.client.api.TableView<T>
      • forEach

        public void forEach​(java.util.function.BiConsumer<java.lang.String,​T> action)
        Specified by:
        forEach in interface org.apache.pulsar.client.api.TableView<T>
      • forEachAndListen

        public void forEachAndListen​(java.util.function.BiConsumer<java.lang.String,​T> action)
        Specified by:
        forEachAndListen in interface org.apache.pulsar.client.api.TableView<T>
      • closeAsync

        public java.util.concurrent.CompletableFuture<java.lang.Void> closeAsync()
        Specified by:
        closeAsync in interface org.apache.pulsar.client.api.TableView<T>
      • close

        public void close()
                   throws org.apache.pulsar.client.api.PulsarClientException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        org.apache.pulsar.client.api.PulsarClientException