Class TableViewImpl<T>

java.lang.Object
org.apache.pulsar.client.impl.TableViewImpl<T>
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.pulsar.client.api.TableView<T>

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

    • 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(String key)
      Specified by:
      containsKey in interface org.apache.pulsar.client.api.TableView<T>
    • get

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

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

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

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

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

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

      public CompletableFuture<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 AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      org.apache.pulsar.client.api.PulsarClientException