Class BetaSelfHostedWorkHeartbeatResponse
-
- All Implemented Interfaces:
public final class BetaSelfHostedWorkHeartbeatResponseResponse after recording a heartbeat for a work item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaSelfHostedWorkHeartbeatResponse.BuilderA builder for BetaSelfHostedWorkHeartbeatResponse.
public final classBetaSelfHostedWorkHeartbeatResponse.StateCurrent state of the work item (active/stopping/stopped)
-
Method Summary
Modifier and Type Method Description final StringlastHeartbeat()RFC 3339 timestamp of the actual heartbeat from DB final BooleanleaseExtended()Whether the heartbeat succeeded in extending the lease final BetaSelfHostedWorkHeartbeatResponse.Statestate()Current state of the work item (active/stopping/stopped) final LongttlSeconds()Effective TTL applied to the lease final JsonValue_type()The type of responseExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("work_heartbeat")final JsonField<String>_lastHeartbeat()Returns the raw JSON value of lastHeartbeat. final JsonField<Boolean>_leaseExtended()Returns the raw JSON value of leaseExtended. final JsonField<BetaSelfHostedWorkHeartbeatResponse.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 BetaSelfHostedWorkHeartbeatResponse.BuildertoBuilder()final BetaSelfHostedWorkHeartbeatResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaSelfHostedWorkHeartbeatResponse.Builderbuilder()Returns a mutable builder for constructing an instance of BetaSelfHostedWorkHeartbeatResponse. -
-
Method Detail
-
lastHeartbeat
final String lastHeartbeat()
RFC 3339 timestamp of the actual heartbeat from DB
-
leaseExtended
final Boolean leaseExtended()
Whether the heartbeat succeeded in extending the lease
-
state
final BetaSelfHostedWorkHeartbeatResponse.State state()
Current state of the work item (active/stopping/stopped)
-
ttlSeconds
final Long ttlSeconds()
Effective TTL applied to the lease
-
_type
final JsonValue _type()
The type of response
Expected to always return the following:
JsonValue.from("work_heartbeat")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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<BetaSelfHostedWorkHeartbeatResponse.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 BetaSelfHostedWorkHeartbeatResponse.Builder toBuilder()
-
validate
final BetaSelfHostedWorkHeartbeatResponse 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 BetaSelfHostedWorkHeartbeatResponse.Builder builder()
Returns a mutable builder for constructing an instance of BetaSelfHostedWorkHeartbeatResponse.
The following fields are required:
.lastHeartbeat() .leaseExtended() .state() .ttlSeconds()
-
-
-
-