public final class PubSubPublishingOffsets extends Object
| Modifier and Type | Field and Description |
|---|---|
static PubSubPublishingOffsets |
ZERO
Constant that only contains single offset with value of 0.
|
| Modifier and Type | Method and Description |
|---|---|
static PubSubPublishingOffsets |
copyOf(Iterable<Duration> offsets)
Deprecated.
at the moment SDK does only support a single offset, if this method is used instead
of
of(Duration) only the first offset is used. |
boolean |
equals(Object obj) |
List<Duration> |
getOffsets()
Returns an unmodifiable list of publishing offsets.
|
int |
hashCode() |
static PubSubPublishingOffsets |
of(Duration offset)
Returns new
PubSubPublishingOffsets with (just) the given offset. |
String |
toString() |
public static final PubSubPublishingOffsets ZERO
@Deprecated public static PubSubPublishingOffsets copyOf(Iterable<Duration> offsets)
of(Duration) only the first offset is used.PubSubPublishingOffsets with the given offets. At least one offset must be
given, otherwise IllegalArgumentException is thrown.public static PubSubPublishingOffsets of(Duration offset)
PubSubPublishingOffsets with (just) the given offset.public List<Duration> getOffsets()
Copyright © 2026. All rights reserved.