Class RestartComponentResponseHandler
java.lang.Object
software.amazon.awssdk.aws.greengrass.RestartComponentResponseHandler
- All Implemented Interfaces:
StreamEventPublisher<EventStreamJsonMessage>,StreamResponse<RestartComponentResponse,EventStreamJsonMessage>
public final class RestartComponentResponseHandler
extends Object
implements StreamResponse<RestartComponentResponse,EventStreamJsonMessage>
-
Constructor Summary
ConstructorsConstructorDescriptionRestartComponentResponseHandler(OperationResponse<RestartComponentResponse, 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
-
RestartComponentResponseHandler
public RestartComponentResponseHandler(OperationResponse<RestartComponentResponse, 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<RestartComponentResponse,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<RestartComponentResponse,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<RestartComponentResponse,EventStreamJsonMessage> - Returns:
- True if the stream is closed
-