Class Partition

java.lang.Object
com.google.cloud.pubsublite.Partition
All Implemented Interfaces:
Serializable

public abstract class Partition extends Object implements Serializable
A partition of a topic.
See Also:
  • Constructor Details

    • Partition

      public Partition()
  • Method Details

    • of

      public static Partition of(long partition) throws com.google.api.gax.rpc.ApiException
      Create a partition from its long value.
      Throws:
      com.google.api.gax.rpc.ApiException
    • value

      public abstract long value()
      The long value of this partition.