Class OpenlayerClientImpl
-
- All Implemented Interfaces:
-
com.openlayer.api.client.OpenlayerClient
public final class OpenlayerClientImpl implements OpenlayerClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOpenlayerClientImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description OpenlayerClientImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description OpenlayerClientAsyncasync()Returns a version of this client that uses asynchronous execution. OpenlayerClient.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. OpenlayerClientwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. ProjectServiceprojects()WorkspaceServiceworkspaces()CommitServicecommits()InferencePipelineServiceinferencePipelines()StorageServicestorage()TestServicetests()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
OpenlayerClientImpl
OpenlayerClientImpl(ClientOptions clientOptions)
-
-
Method Detail
-
async
OpenlayerClientAsync async()
Returns a version of this client that uses asynchronous execution.
The returned client shares its resources, like its connection pool and thread pools, with this client.
-
withRawResponse
OpenlayerClient.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
OpenlayerClient withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
projects
ProjectService projects()
-
workspaces
WorkspaceService workspaces()
-
commits
CommitService commits()
-
inferencePipelines
InferencePipelineService inferencePipelines()
-
storage
StorageService storage()
-
tests
TestService tests()
-
close
Unit close()
Closes this client, relinquishing any underlying resources.
This is purposefully not inherited from AutoCloseable because the client is long-lived and usually should not be synchronously closed via try-with-resources.
It's also usually not necessary to call this method at all. the default HTTP client automatically releases threads and connections if they remain idle, but if you are writing an application that needs to aggressively release unused resources, then you may call this method.
-
-
-
-