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 class
SeekTarget.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 BacklogLocation
backlogLocation()
abstract com.google.protobuf.Timestamp
eventTime()
abstract SeekTarget.Kind
getKind()
static SeekTarget
of(BacklogLocation location)
Seek to a named backlog location.static SeekTarget
ofEventTime(com.google.protobuf.Timestamp time)
Seek to a message event timestamp.static SeekTarget
ofPublishTime(com.google.protobuf.Timestamp time)
Seek to a message publish timestamp.abstract com.google.protobuf.Timestamp
publishTime()
-
-
-
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.
-
-