Package app.knock.api.client
Class KnockClientImpl
-
- All Implemented Interfaces:
-
app.knock.api.client.KnockClient
public final class KnockClientImpl implements KnockClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classKnockClientImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description KnockClientImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description KnockClientAsyncasync()Returns a version of this client that uses asynchronous execution. KnockClient.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. SharedServiceshared()RecipientServicerecipients()UserServiceusers()ObjectServiceobjects()TenantServicetenants()BulkOperationServicebulkOperations()MessageServicemessages()ProviderServiceproviders()IntegrationServiceintegrations()WorkflowServiceworkflows()ScheduleServiceschedules()ChannelServicechannels()AudienceServiceaudiences()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
KnockClientImpl
KnockClientImpl(ClientOptions clientOptions)
-
-
Method Detail
-
async
KnockClientAsync 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
KnockClient.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
shared
SharedService shared()
-
recipients
RecipientService recipients()
-
users
UserService users()
-
objects
ObjectService objects()
-
tenants
TenantService tenants()
-
bulkOperations
BulkOperationService bulkOperations()
-
messages
MessageService messages()
-
providers
ProviderService providers()
-
integrations
IntegrationService integrations()
-
workflows
WorkflowService workflows()
-
schedules
ScheduleService schedules()
-
channels
ChannelService channels()
-
audiences
AudienceService 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.
-
-
-
-