Class CqrsQuery<T>
- java.lang.Object
-
- io.naradrama.prologue.domain.cqrs.DomainMessage
-
- io.naradrama.prologue.domain.cqrs.query.CqrsQuery<T>
-
- All Implemented Interfaces:
CqrsExecutable,JsonSerializable
- Direct Known Subclasses:
CqrsBaseQuery,CqrsDynamicQuery,CqrsUserQuery,RequestedCqrsQuery
public abstract class CqrsQuery<T> extends DomainMessage implements CqrsExecutable
-
-
Constructor Summary
Constructors Constructor Description CqrsQuery(CqrsQueryType cqrsQueryType)CqrsQuery(TraceHeader traceHeader, CqrsQueryType cqrsQueryType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckWaitingTime()java.lang.StringgenRequestTimestamp()FailureMessagegetFailureMessage()TgetQueryResult()voidsetFailureMessage(FailureMessage failureMessage)voidsetQueryResponse(QueryResponse<T> queryResponse)voidsetQueryResult(T queryResult)java.lang.StringtoJsonWithoutResult()-
Methods inherited from class io.naradrama.prologue.domain.cqrs.DomainMessage
toPayload, toPayloadClassName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.naradrama.prologue.domain.cqrs.CqrsExecutable
setTraceHeader
-
Methods inherited from interface io.naradrama.prologue.util.json.JsonSerializable
toJson, toPrettyJson
-
-
-
-
Constructor Detail
-
CqrsQuery
public CqrsQuery(CqrsQueryType cqrsQueryType)
-
CqrsQuery
public CqrsQuery(TraceHeader traceHeader, CqrsQueryType cqrsQueryType)
-
-
Method Detail
-
genRequestTimestamp
public java.lang.String genRequestTimestamp()
-
toJsonWithoutResult
public java.lang.String toJsonWithoutResult()
-
setFailureMessage
public void setFailureMessage(FailureMessage failureMessage)
- Specified by:
setFailureMessagein interfaceCqrsExecutable
-
getFailureMessage
public FailureMessage getFailureMessage()
-
setQueryResponse
public void setQueryResponse(QueryResponse<T> queryResponse)
-
setQueryResult
public void setQueryResult(T queryResult)
-
getQueryResult
public T getQueryResult()
-
checkWaitingTime
public void checkWaitingTime()
- Specified by:
checkWaitingTimein interfaceCqrsExecutable
-
-