object CommandResponse extends Serializable
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
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
Represents a final response stating acceptance of a command received
- 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
CommandNotAvailable(runId: Id) extends QueryResponse with Product with Serializable
A negative response stating that a command with given runId is not available or cannot be located
A negative response stating that a command with given runId is not available or cannot be located
- runId
of command for which this response is created
-
case class
Completed(runId: Id) extends SubmitResponse with MatchingResponse with Product with Serializable
Represents a positive response stating completion of command
Represents a positive response stating completion of command
- runId
of command for which this response is created
-
case class
CompletedWithResult(runId: Id, result: Result) extends SubmitResponse with Product with Serializable
Represents a positive response stating completion of command
Represents a positive response stating completion of command
- runId
of command for which this response is created
- result
describing the result of completion
-
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 negative response invalidating a command received
Represents a negative response invalidating a command received
- 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
-
sealed
trait
QueryResponse extends CommandResponse
QueryResponse is returned by CommandService query Values can be Invalid, Started, Completed, CompletedWithResult, Error, Cancelled, Locked, CommandNotAvailable
-
case class
Started(runId: Id) extends SubmitResponse with Product with Serializable
Represents an intermediate response stating a long running command has been started
Represents an intermediate response stating a long running command has been started
- runId
of command for which this response is created
-
sealed
trait
SubmitResponse extends QueryResponse
SubmitResponse is returned by Submit message which calls the onSubmit handler Responses returned can be Invalid, Started, Completed, CompletedWithResult, 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isFinal(qr: QueryResponse): 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
- qr
response for testing
- returns
true if it is final
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isIntermediate(qr: QueryResponse): Boolean
Tests a response to determine if it is an intermediate response
Tests a response to determine if it is an intermediate response
- qr
response for testing
- returns
returns true if it is intermediate
-
def
isNegative(qr: QueryResponse): Boolean
Tests a response to determine if it is a negative response
Tests a response to determine if it is a negative response
- qr
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(qr: QueryResponse): Boolean
Test a QueryResponse to determine if it is a positive response
Test a QueryResponse to determine if it is a positive response
- qr
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withRunId(id: Id, response: SubmitResponse): SubmitResponse
Transform a given CommandResponse to a response with the provided Id
Transform a given CommandResponse to a response with the provided Id
- id
the RunId for the new CommandResponse
- response
the CommandResponse to be transformed
- returns
a CommandResponse that has runId as provided id