Package tw.teddysoft.ezddd.cqrs.usecase
Class CqrsOutput<T extends CqrsOutput<T>>
java.lang.Object
tw.teddysoft.ezddd.cqrs.usecase.CqrsOutput<T>
- All Implemented Interfaces:
Output
CqrsOutput
is a class for representing the cqrs output of
Command
.- Since:
- 1.0
- Author:
- Teddy Chen, ezKanban team
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CqrsOutput
<?> create()
static <T> T
fail()
getId()
setExitCode
(ExitCode exitCode) setMessage
(String message) succeed()
-
Constructor Details
-
CqrsOutput
public CqrsOutput()- Since:
- 1.0.7
-
-
Method Details
-
create
-
create
- Since:
- 1.0.5
-
getId
-
setId
-
getMessage
- Specified by:
getMessage
in interfaceOutput
-
setMessage
- Specified by:
setMessage
in interfaceOutput
-
getExitCode
- Specified by:
getExitCode
in interfaceOutput
-
setExitCode
- Specified by:
setExitCode
in interfaceOutput
-
fail
-
succeed
-