Class CourierClientAsyncImpl
-
- All Implemented Interfaces:
-
com.courier.client.CourierClientAsync
public final class CourierClientAsyncImpl implements CourierClientAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCourierClientAsyncImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description CourierClientAsyncImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description CourierClientsync()Returns a version of this client that uses synchronous execution. CourierClientAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. CourierClientAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. SendServiceAsyncsend()AudienceServiceAsyncaudiences()AuditEventServiceAsyncauditEvents()AuthServiceAsyncauth()AutomationServiceAsyncautomations()BrandServiceAsyncbrands()BulkServiceAsyncbulk()InboundServiceAsyncinbound()ListServiceAsynclists()MessageServiceAsyncmessages()RequestServiceAsyncrequests()NotificationServiceAsyncnotifications()ProfileServiceAsyncprofiles()TenantServiceAsynctenants()TranslationServiceAsynctranslations()UserServiceAsyncusers()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
CourierClientAsyncImpl
CourierClientAsyncImpl(ClientOptions clientOptions)
-
-
Method Detail
-
sync
CourierClient 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
CourierClientAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
CourierClientAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
send
SendServiceAsync send()
-
audiences
AudienceServiceAsync audiences()
-
auditEvents
AuditEventServiceAsync auditEvents()
-
auth
AuthServiceAsync auth()
-
automations
AutomationServiceAsync automations()
-
brands
BrandServiceAsync brands()
-
bulk
BulkServiceAsync bulk()
-
inbound
InboundServiceAsync inbound()
-
lists
ListServiceAsync lists()
-
messages
MessageServiceAsync messages()
-
requests
RequestServiceAsync requests()
-
notifications
NotificationServiceAsync notifications()
-
profiles
ProfileServiceAsync profiles()
-
tenants
TenantServiceAsync tenants()
-
translations
TranslationServiceAsync translations()
-
users
UserServiceAsync users()
-
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.
-
-
-
-