Interface TypedResponseWriter
-
- All Known Implementing Classes:
NoopResponseWriter,TypedResponseWriterImpl,TypedResponseWriterProxy
public interface TypedResponseWriter
-
-
Method Summary
All Methods Instance Methods Abstract 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
void writeRejectionOnCommand(TypedRecord<?> command, RejectionType type, String reason)
-
writeEvent
void writeEvent(TypedRecord<?> event)
-
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.- Returns:
- false in case of backpressure, else true
-
-