public abstract class ServerConnectionContinuationHandler extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected ServerConnectionContinuation |
continuation |
| Modifier | Constructor and Description |
|---|---|
protected |
ServerConnectionContinuationHandler(ServerConnectionContinuation continuation)
Constructor invoked by your subclass.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompletableFuture<Void> |
getContinuationClosedFuture() |
protected void |
onContinuationClosed()
Implement to handle the onContinuationClosed event.
|
protected abstract void |
onContinuationMessage(List<Header> headers,
byte[] payload,
MessageType messageType,
int messageFlags)
Invoked when a message is received on a continuation.
|
protected ServerConnectionContinuation continuation
protected ServerConnectionContinuationHandler(ServerConnectionContinuation continuation)
continuation - continuation to back the handler.protected void onContinuationClosed()
protected abstract void onContinuationMessage(List<Header> headers, byte[] payload, MessageType messageType, int messageFlags)
headers - List of EventStream headers for the message received.payload - Payload for the message receivedmessageType - message type for the messagemessageFlags - message flags for the messagepublic CompletableFuture<Void> getContinuationClosedFuture()
public void close()
close in interface AutoCloseableCopyright © 2021. All rights reserved.