Interface LegacyTypedResponseWriter
- All Superinterfaces:
SideEffectProducer,TypedResponseWriter
- All Known Implementing Classes:
LegacyTypedResponseWriterImpl,NoopResponseWriterLegacy
-
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) voidwriteResponse(RecordType recordType, long key, Intent intent, UnpackedObject value, ValueType valueType, RejectionType rejectionType, String rejectionReason, long requestId, int requestStreamId)
-
Method Details
-
writeRejectionOnCommand
- Specified by:
writeRejectionOnCommandin interfaceTypedResponseWriter
-
writeEvent
- Specified by:
writeEventin interfaceTypedResponseWriter
-
writeEventOnCommand
void writeEventOnCommand(long eventKey, Intent eventState, UnpackedObject eventValue, TypedRecord<?> command) - Specified by:
writeEventOnCommandin interfaceTypedResponseWriter
-
writeResponse
void writeResponse(long eventKey, Intent eventState, UnpackedObject eventValue, ValueType valueType, long requestId, int requestStreamId) - Specified by:
writeResponsein interfaceTypedResponseWriter
-
writeResponse
void writeResponse(RecordType recordType, long key, Intent intent, UnpackedObject value, ValueType valueType, RejectionType rejectionType, String rejectionReason, 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()
-