public final class CreateDebugPasswordResponseHandler extends Object implements StreamResponse<CreateDebugPasswordResponse,EventStreamJsonMessage>
| Constructor and Description |
|---|
CreateDebugPasswordResponseHandler(OperationResponse<CreateDebugPasswordResponse,EventStreamJsonMessage> operationResponse) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
closeStream()
Closes the stream by sending an empty message
|
CompletableFuture<Void> |
getRequestFlushFuture()
Completable future indicating flush of the request that initiated the stream operation
|
CompletableFuture<CreateDebugPasswordResponse> |
getResponse()
Completable future for retrieving the initial-response of the stream operation
|
boolean |
isClosed()
Tests if the stream is closed
|
CompletableFuture<Void> |
sendStreamEvent(EventStreamJsonMessage event)
Publish an event over an open stream operation.
|
public CreateDebugPasswordResponseHandler(OperationResponse<CreateDebugPasswordResponse,EventStreamJsonMessage> operationResponse)
public CompletableFuture<Void> getRequestFlushFuture()
StreamResponsegetRequestFlushFuture in interface StreamResponse<CreateDebugPasswordResponse,EventStreamJsonMessage>public CompletableFuture<CreateDebugPasswordResponse> getResponse()
StreamResponsegetResponse in interface StreamResponse<CreateDebugPasswordResponse,EventStreamJsonMessage>public CompletableFuture<Void> sendStreamEvent(EventStreamJsonMessage event)
StreamEventPublishersendStreamEvent in interface StreamEventPublisher<EventStreamJsonMessage>event - event to publishpublic CompletableFuture<Void> closeStream()
StreamEventPublishercloseStream in interface StreamEventPublisher<EventStreamJsonMessage>public boolean isClosed()
StreamResponseisClosed in interface StreamResponse<CreateDebugPasswordResponse,EventStreamJsonMessage>Copyright ? 2021. All rights reserved.