Class ListLocalDeploymentsResponseHandler
java.lang.Object
software.amazon.awssdk.aws.greengrass.ListLocalDeploymentsResponseHandler
- All Implemented Interfaces:
StreamEventPublisher<EventStreamJsonMessage>,StreamResponse<ListLocalDeploymentsResponse,EventStreamJsonMessage>
public final class ListLocalDeploymentsResponseHandler
extends Object
implements StreamResponse<ListLocalDeploymentsResponse,EventStreamJsonMessage>
-
Constructor Summary
ConstructorsConstructorDescriptionListLocalDeploymentsResponseHandler(OperationResponse<ListLocalDeploymentsResponse, EventStreamJsonMessage> operationResponse) -
Method Summary
Modifier and TypeMethodDescriptionCloses the stream by sending an empty messageCompletable future indicating flush of the request that initiated the stream operationCompletable future for retrieving the initial-response of the stream operationbooleanisClosed()Tests if the stream is closedPublish an event over an open stream operation.
-
Constructor Details
-
ListLocalDeploymentsResponseHandler
public ListLocalDeploymentsResponseHandler(OperationResponse<ListLocalDeploymentsResponse, EventStreamJsonMessage> operationResponse)
-
-
Method Details
-
getRequestFlushFuture
Description copied from interface:StreamResponseCompletable future indicating flush of the request that initiated the stream operation- Specified by:
getRequestFlushFuturein interfaceStreamResponse<ListLocalDeploymentsResponse,EventStreamJsonMessage> - Returns:
- Completable future indicating flush of the request that initiated the stream operation
-
getResponse
Description copied from interface:StreamResponseCompletable future for retrieving the initial-response of the stream operation- Specified by:
getResponsein interfaceStreamResponse<ListLocalDeploymentsResponse,EventStreamJsonMessage> - Returns:
- Completable future for retrieving the initial-response of the stream operation
-
sendStreamEvent
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
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<ListLocalDeploymentsResponse,EventStreamJsonMessage> - Returns:
- True if the stream is closed
-