Class TypedResponseWriterImpl
java.lang.Object
io.camunda.zeebe.engine.processing.streamprocessor.writers.TypedResponseWriterImpl
- All Implemented Interfaces:
SideEffectProducer,TypedResponseWriter
public final class TypedResponseWriterImpl
extends Object
implements TypedResponseWriter, SideEffectProducer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanflush()Submits the response to transport.voidreset()voidwriteEvent(TypedRecord<?> event) voidwriteEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command) voidwriteRejectionOnCommand(TypedRecord<?> command, RejectionType type, String reason) voidwriteResponse(long eventKey, Intent eventState, UnpackedObject eventValue, ValueType valueType, long requestId, int requestStreamId)
-
Constructor Details
-
TypedResponseWriterImpl
-
-
Method Details
-
writeRejectionOnCommand
- Specified by:
writeRejectionOnCommandin interfaceTypedResponseWriter
-
writeEvent
- Specified by:
writeEventin interfaceTypedResponseWriter
-
writeEventOnCommand
public void writeEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command) - Specified by:
writeEventOnCommandin interfaceTypedResponseWriter
-
writeResponse
public void writeResponse(long eventKey, Intent eventState, UnpackedObject eventValue, ValueType valueType, long requestId, int requestStreamId) - Specified by:
writeResponsein interfaceTypedResponseWriter
-
flush
public boolean flush()Description copied from interface:TypedResponseWriterSubmits the response to transport.- Specified by:
flushin interfaceSideEffectProducer- Specified by:
flushin interfaceTypedResponseWriter- Returns:
- false in case of backpressure, else true
-
reset
public void reset()- Specified by:
resetin interfaceTypedResponseWriter
-