public class ServerOutputImpl extends Object implements ServerOutput
| Modifier and Type | Field and Description |
|---|---|
protected io.zeebe.dispatcher.Dispatcher |
sendBuffer |
| Constructor and Description |
|---|
ServerOutputImpl(io.zeebe.dispatcher.Dispatcher sendBuffer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
sendMessage(TransportMessage transportMessage)
Sends a message according to the single message protocol.
|
boolean |
sendResponse(ServerResponse response)
Sends a response according to the request response protocol.
|
public ServerOutputImpl(io.zeebe.dispatcher.Dispatcher sendBuffer)
public boolean sendMessage(TransportMessage transportMessage)
ServerOutputSends a message according to the single message protocol.
Returns false if the message cannot be currently written due to exhausted capacity. Throws an exception if the request is not sendable at all (e.g. buffer writer throws exception).
sendMessage in interface ServerOutputpublic boolean sendResponse(ServerResponse response)
ServerOutputSends a response according to the request response protocol.
Returns null if the response cannot be currently written due to exhausted capacity. Throws an exception if the response is not sendable at all (e.g. buffer writer throws exception).
sendResponse in interface ServerOutputCopyright © 2017–2018 camunda services GmbH. All rights reserved.