Class WorkServiceImpl
-
- All Implemented Interfaces:
-
com.anthropic.services.blocking.beta.environments.WorkService
public final class WorkServiceImpl implements WorkService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWorkServiceImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description WorkService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. WorkServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. BetaSelfHostedWorkretrieve(WorkRetrieveParams params, RequestOptions requestOptions)BetaSelfHostedWorkupdate(WorkUpdateParams params, RequestOptions requestOptions)WorkListPagelist(WorkListParams params, RequestOptions requestOptions)BetaSelfHostedWorkack(WorkAckParams params, RequestOptions requestOptions)BetaSelfHostedWorkHeartbeatResponseheartbeat(WorkHeartbeatParams params, RequestOptions requestOptions)Optional<BetaSelfHostedWork>poll(WorkPollParams params, RequestOptions requestOptions)BetaSelfHostedWorkQueueStatsstats(WorkStatsParams params, RequestOptions requestOptions)BetaSelfHostedWorkstop(WorkStopParams params, RequestOptions requestOptions)-
Methods inherited from class com.anthropic.services.blocking.beta.environments.WorkService
ack, ack, ack, heartbeat, heartbeat, heartbeat, list, list, list, list, list, poll, poll, poll, poll, poll, retrieve, retrieve, retrieve, stats, stats, stats, stats, stats, stop, stop, stop, update, update, update -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
withRawResponse
WorkService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
WorkService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
BetaSelfHostedWork retrieve(WorkRetrieveParams params, RequestOptions requestOptions)
-
update
BetaSelfHostedWork update(WorkUpdateParams params, RequestOptions requestOptions)
-
list
WorkListPage list(WorkListParams params, RequestOptions requestOptions)
-
ack
BetaSelfHostedWork ack(WorkAckParams params, RequestOptions requestOptions)
-
heartbeat
BetaSelfHostedWorkHeartbeatResponse heartbeat(WorkHeartbeatParams params, RequestOptions requestOptions)
-
poll
Optional<BetaSelfHostedWork> poll(WorkPollParams params, RequestOptions requestOptions)
-
stats
BetaSelfHostedWorkQueueStats stats(WorkStatsParams params, RequestOptions requestOptions)
-
stop
BetaSelfHostedWork stop(WorkStopParams params, RequestOptions requestOptions)
-
-
-
-