Package com.google.cloud.pubsublite
Class SeekTarget
- java.lang.Object
-
- com.google.cloud.pubsublite.SeekTarget
-
- All Implemented Interfaces:
Serializable
public abstract class SeekTarget extends Object implements Serializable
The target location to seek a subscription to.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSeekTarget.Kind
-
Constructor Summary
Constructors Constructor Description SeekTarget()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BacklogLocationbacklogLocation()abstract com.google.protobuf.TimestampeventTime()abstract SeekTarget.KindgetKind()static SeekTargetof(BacklogLocation location)Seek to a named backlog location.static SeekTargetofEventTime(com.google.protobuf.Timestamp time)Seek to a message event timestamp.static SeekTargetofPublishTime(com.google.protobuf.Timestamp time)Seek to a message publish timestamp.abstract com.google.protobuf.TimestamppublishTime()
-
-
-
Method Detail
-
getKind
public abstract SeekTarget.Kind getKind()
-
backlogLocation
public abstract BacklogLocation backlogLocation()
-
publishTime
public abstract com.google.protobuf.Timestamp publishTime()
-
eventTime
public abstract com.google.protobuf.Timestamp eventTime()
-
of
public static SeekTarget of(BacklogLocation location)
Seek to a named backlog location.
-
ofPublishTime
public static SeekTarget ofPublishTime(com.google.protobuf.Timestamp time)
Seek to a message publish timestamp.
-
ofEventTime
public static SeekTarget ofEventTime(com.google.protobuf.Timestamp time)
Seek to a message event timestamp.
-
-