Class NoopResponseWriter
- java.lang.Object
-
- io.zeebe.engine.processing.streamprocessor.writers.NoopResponseWriter
-
- All Implemented Interfaces:
TypedResponseWriter
public final class NoopResponseWriter extends Object implements TypedResponseWriter
-
-
Constructor Summary
Constructors Constructor Description NoopResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanflush()Submits the response to transport.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)
-
-
-
Method Detail
-
writeRejectionOnCommand
public void writeRejectionOnCommand(TypedRecord<?> command, RejectionType type, String reason)
- Specified by:
writeRejectionOnCommandin interfaceTypedResponseWriter
-
writeEvent
public void writeEvent(TypedRecord<?> event)
- 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 interfaceTypedResponseWriter- Returns:
- false in case of backpressure, else true
-
-