Package app.knock.api.client
Class KnockClientAsyncImpl
-
- All Implemented Interfaces:
-
app.knock.api.client.KnockClientAsync
public final class KnockClientAsyncImpl implements KnockClientAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKnockClientAsyncImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description KnockClientAsyncImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description KnockClientsync()Returns a version of this client that uses synchronous execution. KnockClientAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. SharedServiceAsyncshared()RecipientServiceAsyncrecipients()UserServiceAsyncusers()ObjectServiceAsyncobjects()TenantServiceAsynctenants()BulkOperationServiceAsyncbulkOperations()MessageServiceAsyncmessages()ProviderServiceAsyncproviders()IntegrationServiceAsyncintegrations()WorkflowServiceAsyncworkflows()ScheduleServiceAsyncschedules()ChannelServiceAsyncchannels()AudienceServiceAsyncaudiences()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
KnockClientAsyncImpl
KnockClientAsyncImpl(ClientOptions clientOptions)
-
-
Method Detail
-
sync
KnockClient sync()
Returns a version of this client that uses synchronous execution.
The returned client shares its resources, like its connection pool and thread pools, with this client.
-
withRawResponse
KnockClientAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
shared
SharedServiceAsync shared()
-
recipients
RecipientServiceAsync recipients()
-
users
UserServiceAsync users()
-
objects
ObjectServiceAsync objects()
-
tenants
TenantServiceAsync tenants()
-
bulkOperations
BulkOperationServiceAsync bulkOperations()
-
messages
MessageServiceAsync messages()
-
providers
ProviderServiceAsync providers()
-
integrations
IntegrationServiceAsync integrations()
-
workflows
WorkflowServiceAsync workflows()
-
schedules
ScheduleServiceAsync schedules()
-
channels
ChannelServiceAsync channels()
-
audiences
AudienceServiceAsync audiences()
-
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.
-
-
-
-