Class SyncJobClaimRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.connector.SyncJobClaimRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class SyncJobClaimRequest
extends RequestBase
implements JsonpSerializable
Claim a connector sync job. This action updates the job status to
 
in_progress and sets the last_seen and
 started_at timestamps to the current time. Additionally, it can
 set the sync_cursor property for the sync job.
 This API is not intended for direct connector management by users. It supports the implementation of services that utilize the connector protocol to communicate with Elasticsearch.
To sync data using self-managed connectors, you need to deploy the Elastic connector service on your own infrastructure. This service runs automatically on Elastic Cloud for Elastic managed connectors.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SyncJobClaimRequest>Json deserializer forSyncJobClaimRequeststatic final Endpoint<SyncJobClaimRequest,SyncJobClaimResponse, ErrorResponse> Endpoint "connector.sync_job_claim".
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringRequired - The unique identifier of the connector sync job.static SyncJobClaimRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDataThe cursor object from the last incremental sync job.final StringRequired - The host name of the current system that will run the job.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forSyncJobClaimRequest
- 
_ENDPOINTEndpoint "connector.sync_job_claim".
 
- 
- 
Method Details- 
ofpublic static SyncJobClaimRequest of(Function<SyncJobClaimRequest.Builder, ObjectBuilder<SyncJobClaimRequest>> fn) 
- 
connectorSyncJobIdRequired - The unique identifier of the connector sync job.API name: connector_sync_job_id
- 
syncCursorThe cursor object from the last incremental sync job. This should reference thesync_cursorfield in the connector state for which the job runs.API name: sync_cursor
- 
workerHostnameRequired - The host name of the current system that will run the job.API name: worker_hostname
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupSyncJobClaimRequestDeserializerprotected static void setupSyncJobClaimRequestDeserializer(ObjectDeserializer<SyncJobClaimRequest.Builder> op) 
 
-