object CommandResponse
The nature of CommandResponse as an intermediate response of command execution or a final response which could be positive or negative
- Alphabetic
- By Inheritance
- CommandResponse
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Accepted(runId: Id) extends ValidateCommandResponse with ValidateResponse with OnewayResponse with Product with Serializable
Represents a final response stating acceptance of a command received meaning passed validation
Represents a final response stating acceptance of a command received meaning passed validation
- runId
the runId of command for which this response is created
- case class Cancelled(runId: Id) extends SubmitResponse with Product with Serializable
Represents a negative response that describes the cancellation of command
Represents a negative response that describes the cancellation of command
- runId
of command for which this response is created
- case class Completed(runId: Id, result: Result) extends SubmitResponse with MatchingResponse with Product with Serializable
Represents a final positive response stating completion of command with no errors A result may be included or may be empty
Represents a final positive response stating completion of command with no errors A result may be included or may be empty
- runId
of command for which this response is created
- result
describing the result of completion if needed
- case class Error(runId: Id, message: String) extends SubmitResponse with MatchingResponse with Product with Serializable
Represents a negative response that describes an error in executing the command
Represents a negative response that describes an error in executing the command
- runId
of command for which this response is created
- message
describing the reason or cause or action item of the error encountered while executing the command
- case class Invalid(runId: Id, issue: CommandIssue) extends ValidateCommandResponse with ValidateResponse with OnewayResponse with SubmitResponse with MatchingResponse with Product with Serializable
Represents a final negative response invalidating a command received has failed validation
Represents a final negative response invalidating a command received has failed validation
- runId
of command for which this response is created
- issue
describing the cause of invalidation
- case class Locked(runId: Id) extends ValidateResponse with OnewayResponse with SubmitResponse with MatchingResponse with Product with Serializable
Represents a negative response stating that a component is Locked and command was not validated or executed
Represents a negative response stating that a component is Locked and command was not validated or executed
- runId
of command for which this response is created
- sealed trait MatchingResponse extends CommandResponse
MatchingResponse is returned by matchers.
MatchingResponse is returned by matchers. Responses returned can be Invalid, Completed, Error, Locked
- sealed trait OnewayResponse extends CommandResponse
OnewayResponse is returned by Oneway message which calls the onOneway handler Responses returned can be Accepted, Invalid, Locked
- case class Started(runId: Id) extends SubmitResponse with Product with Serializable
Represents a preliminary response stating a long running command has been started
Represents a preliminary response stating a long running command has been started
- runId
of command for which this response is created
- sealed trait SubmitResponse extends CommandResponse
SubmitResponse is returned by Submit message which calls the onSubmit handler Responses returned can be Invalid, Started, Completed, Error, Cancelled, Locked
- sealed trait ValidateCommandResponse extends CommandResponse
ValidationResponse is returned by validateCommand handler.
ValidationResponse is returned by validateCommand handler. Values can only be Invalid, Accepted
- sealed trait ValidateResponse extends CommandResponse
ValidateOnlyResponse is returned by Validate message, which calls validateCommand handler Values can be Invalid, Accepted, Locked.
ValidateOnlyResponse is returned by Validate message, which calls validateCommand handler Values can be Invalid, Accepted, Locked. Since the component can be locked, it is ValidationResponse with Locked
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isFinal(sr: SubmitResponse): Boolean
Tests a response to determine if it is a final command state
Tests a response to determine if it is a final command state
- sr
response for testing
- returns
true if it is final
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isIntermediate(sr: SubmitResponse): Boolean
Tests a response to determine if it is an intermediate response
Tests a response to determine if it is an intermediate response
- sr
response for testing
- returns
returns true if it is intermediate
- def isNegative(sr: SubmitResponse): Boolean
Tests a response to determine if it is a negative response
Tests a response to determine if it is a negative response
- sr
response for testing
- returns
true if it is negative
- def isPositive(or: OnewayResponse): Boolean
Test a OnewayResponse to determine if it is a positive response
Test a OnewayResponse to determine if it is a positive response
- or
a OnewayResponse for testing
- returns
true if positive, false otherwise
- def isPositive(sr: SubmitResponse): Boolean
Test a response to determine if it is a positive response
Test a response to determine if it is a positive response
- sr
response for testing
- returns
true if it is positive
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Completed extends Serializable