Class CourierClientImpl
-
- All Implemented Interfaces:
-
com.courier.client.CourierClient
public final class CourierClientImpl implements CourierClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCourierClientImpl.WithRawResponseImpl
-
Constructor Summary
Constructors Constructor Description CourierClientImpl(ClientOptions clientOptions)
-
Method Summary
Modifier and Type Method Description CourierClientAsyncasync()Returns a version of this client that uses asynchronous execution. CourierClient.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. CourierClientwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. SendServicesend()AudienceServiceaudiences()AuditEventServiceauditEvents()AuthServiceauth()AutomationServiceautomations()JourneyServicejourneys()BrandServicebrands()BulkServicebulk()InboundServiceinbound()ListServicelists()MessageServicemessages()RequestServicerequests()NotificationServicenotifications()ProfileServiceprofiles()TenantServicetenants()TranslationServicetranslations()UserServiceusers()Unitclose()Closes this client, relinquishing any underlying resources. -
-
Constructor Detail
-
CourierClientImpl
CourierClientImpl(ClientOptions clientOptions)
-
-
Method Detail
-
async
CourierClientAsync 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
CourierClient.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
CourierClient withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
send
SendService send()
-
audiences
AudienceService audiences()
-
auditEvents
AuditEventService auditEvents()
-
auth
AuthService auth()
-
automations
AutomationService automations()
-
journeys
JourneyService journeys()
-
brands
BrandService brands()
-
bulk
BulkService bulk()
-
inbound
InboundService inbound()
-
lists
ListService lists()
-
messages
MessageService messages()
-
requests
RequestService requests()
-
notifications
NotificationService notifications()
-
profiles
ProfileService profiles()
-
tenants
TenantService tenants()
-
translations
TranslationService translations()
-
users
UserService 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.
-
-
-
-