Class BetaWorkLeaseState
-
- All Implemented Interfaces:
public final class BetaWorkLeaseStateA work item's lease as the server holds it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWorkLeaseState.BuilderA builder for BetaWorkLeaseState.
public final classBetaWorkLeaseState.StateCurrent state of the work item
-
Method Summary
Modifier and Type Method Description final Optional<String>lastHeartbeat()RFC 3339 timestamp of the stored heartbeat, or null if there has been none final BooleanleaseExtended()Always false: a refused heartbeat does not extend the lease final BetaWorkLeaseState.Statestate()Current state of the work item final LongttlSeconds()TTL of the lease final JsonField<String>_lastHeartbeat()Returns the raw JSON value of lastHeartbeat. final JsonField<Boolean>_leaseExtended()Returns the raw JSON value of leaseExtended. final JsonField<BetaWorkLeaseState.State>_state()Returns the raw JSON value of state. final JsonField<Long>_ttlSeconds()Returns the raw JSON value of ttlSeconds. final Map<String, JsonValue>_additionalProperties()final BetaWorkLeaseState.BuildertoBuilder()final BetaWorkLeaseStatevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWorkLeaseState.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWorkLeaseState. -
-
Method Detail
-
lastHeartbeat
final Optional<String> lastHeartbeat()
RFC 3339 timestamp of the stored heartbeat, or null if there has been none
-
leaseExtended
final Boolean leaseExtended()
Always false: a refused heartbeat does not extend the lease
-
state
final BetaWorkLeaseState.State state()
Current state of the work item
-
ttlSeconds
final Long ttlSeconds()
TTL of the lease
-
_lastHeartbeat
final JsonField<String> _lastHeartbeat()
Returns the raw JSON value of lastHeartbeat.
Unlike lastHeartbeat, this method doesn't throw if the JSON field has an unexpected type.
-
_leaseExtended
final JsonField<Boolean> _leaseExtended()
Returns the raw JSON value of leaseExtended.
Unlike leaseExtended, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<BetaWorkLeaseState.State> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_ttlSeconds
final JsonField<Long> _ttlSeconds()
Returns the raw JSON value of ttlSeconds.
Unlike ttlSeconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaWorkLeaseState.Builder toBuilder()
-
validate
final BetaWorkLeaseState validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaWorkLeaseState.Builder builder()
Returns a mutable builder for constructing an instance of BetaWorkLeaseState.
The following fields are required:
.lastHeartbeat() .leaseExtended() .state() .ttlSeconds()
-
-
-
-