Interface TypedResponseWriter
- All Superinterfaces:
SideEffectProducer
- All Known Implementing Classes:
NoopResponseWriter,TypedResponseWriterImpl
-
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)
-
Method Details
-
writeRejectionOnCommand
-
writeEvent
-
writeEventOnCommand
void writeEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command) -
writeResponse
void writeResponse(long eventKey, Intent eventState, UnpackedObject eventValue, ValueType valueType, long requestId, int requestStreamId) -
flush
boolean flush()Submits the response to transport.- Specified by:
flushin interfaceSideEffectProducer- Returns:
- false in case of backpressure, else true
-
reset
void reset()
-