Class NoopResponseWriter
- java.lang.Object
-
- io.camunda.zeebe.engine.processing.streamprocessor.writers.NoopResponseWriter
-
- All Implemented Interfaces:
SideEffectProducer
,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 boolean
flush()
Submits the response to transport.void
reset()
void
writeEvent(TypedRecord<?> event)
void
writeEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command)
void
writeRejectionOnCommand(TypedRecord<?> command, RejectionType type, String reason)
void
writeResponse(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:
writeRejectionOnCommand
in interfaceTypedResponseWriter
-
writeEvent
public void writeEvent(TypedRecord<?> event)
- Specified by:
writeEvent
in interfaceTypedResponseWriter
-
writeEventOnCommand
public void writeEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command)
- Specified by:
writeEventOnCommand
in interfaceTypedResponseWriter
-
writeResponse
public void writeResponse(long eventKey, Intent eventState, UnpackedObject eventValue, ValueType valueType, long requestId, int requestStreamId)
- Specified by:
writeResponse
in interfaceTypedResponseWriter
-
flush
public boolean flush()
Description copied from interface:TypedResponseWriter
Submits the response to transport.- Specified by:
flush
in interfaceSideEffectProducer
- Specified by:
flush
in interfaceTypedResponseWriter
- Returns:
- false in case of backpressure, else true
-
reset
public void reset()
- Specified by:
reset
in interfaceTypedResponseWriter
-
-