@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonWorkMailMessageFlowAsyncClient extends AmazonWorkMailMessageFlowClient implements AmazonWorkMailMessageFlowAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonWorkMailMessageFlowAsyncClientBuilder |
asyncBuilder() |
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetRawMessageContentResult> |
getRawMessageContentAsync(GetRawMessageContentRequest request)
Retrieves the raw content of an in-transit email message, in MIME format.
|
Future<GetRawMessageContentResult> |
getRawMessageContentAsync(GetRawMessageContentRequest request,
AsyncHandler<GetRawMessageContentRequest,GetRawMessageContentResult> asyncHandler)
Retrieves the raw content of an in-transit email message, in MIME format.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, getCachedResponseMetadata, getRawMessageContent
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCachedResponseMetadata, getRawMessageContent
public static AmazonWorkMailMessageFlowAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request)
AmazonWorkMailMessageFlowAsync
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync
in interface AmazonWorkMailMessageFlowAsync
public Future<GetRawMessageContentResult> getRawMessageContentAsync(GetRawMessageContentRequest request, AsyncHandler<GetRawMessageContentRequest,GetRawMessageContentResult> asyncHandler)
AmazonWorkMailMessageFlowAsync
Retrieves the raw content of an in-transit email message, in MIME format.
getRawMessageContentAsync
in interface AmazonWorkMailMessageFlowAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonWorkMailMessageFlow
shutdown
in class AmazonWebServiceClient