Class VerifyClientDeviceIdentityResponseHandler
- java.lang.Object
-
- software.amazon.awssdk.aws.greengrass.VerifyClientDeviceIdentityResponseHandler
-
- All Implemented Interfaces:
StreamEventPublisher<EventStreamJsonMessage>,StreamResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage>
public final class VerifyClientDeviceIdentityResponseHandler extends Object implements StreamResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage>
-
-
Constructor Summary
Constructors Constructor Description VerifyClientDeviceIdentityResponseHandler(OperationResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage> operationResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>closeStream()Closes the stream by sending an empty messageCompletableFuture<Void>getRequestFlushFuture()Completable future indicating flush of the request that initiated the stream operationCompletableFuture<VerifyClientDeviceIdentityResponse>getResponse()Completable future for retrieving the initial-response of the stream operationbooleanisClosed()Tests if the stream is closedCompletableFuture<Void>sendStreamEvent(EventStreamJsonMessage event)Publish an event over an open stream operation.
-
-
-
Constructor Detail
-
VerifyClientDeviceIdentityResponseHandler
public VerifyClientDeviceIdentityResponseHandler(OperationResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage> operationResponse)
-
-
Method Detail
-
getRequestFlushFuture
public CompletableFuture<Void> getRequestFlushFuture()
Description copied from interface:StreamResponseCompletable future indicating flush of the request that initiated the stream operation- Specified by:
getRequestFlushFuturein interfaceStreamResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage>- Returns:
- Completable future indicating flush of the request that initiated the stream operation
-
getResponse
public CompletableFuture<VerifyClientDeviceIdentityResponse> getResponse()
Description copied from interface:StreamResponseCompletable future for retrieving the initial-response of the stream operation- Specified by:
getResponsein interfaceStreamResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage>- Returns:
- Completable future for retrieving the initial-response of the stream operation
-
sendStreamEvent
public CompletableFuture<Void> sendStreamEvent(EventStreamJsonMessage event)
Description copied from interface:StreamEventPublisherPublish an event over an open stream operation.- Specified by:
sendStreamEventin interfaceStreamEventPublisher<EventStreamJsonMessage>- Parameters:
event- event to publish- Returns:
- Completable future indicating flush of the event over the stream
-
closeStream
public CompletableFuture<Void> closeStream()
Description copied from interface:StreamEventPublisherCloses the stream by sending an empty message- Specified by:
closeStreamin interfaceStreamEventPublisher<EventStreamJsonMessage>- Returns:
- Completable future indicating flush of the stream termination message
-
isClosed
public boolean isClosed()
Description copied from interface:StreamResponseTests if the stream is closed- Specified by:
isClosedin interfaceStreamResponse<VerifyClientDeviceIdentityResponse,EventStreamJsonMessage>- Returns:
- True if the stream is closed
-
-