@Entity public class Message extends Object implements HumanReadable
Modifier and Type | Field and Description |
---|---|
static String |
ERR_DESC_SEPARATOR
Separator that separates business error descriptions.
|
Constructor and Description |
---|
Message()
Empty (default) constructor.
|
Message(ExternalSystemExtEnum sourceSystem,
String correlationId)
Creates message with specified source system and correlation ID.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
existHardParent()
Is there message that has parent message with
hard binding? |
String |
getBusinessError()
Gets business error descriptions.
|
List<String> |
getBusinessErrorList()
Gets list of business error descriptions.
|
String |
getCorrelationId()
Gets correlation ID that serves for pairing asynchronous request and response.
|
String |
getCustomData()
Gets custom data.
|
EntityTypeExtEnum |
getEntityType()
Gets type of the entity that is being changed.
|
String |
getEnvelope()
Gets the whole SOAP envelope (= the full original request: SOAP headers, SOAP body).
|
List<ExternalCall> |
getExternalCalls()
Gets the set of referenced external calls.
|
int |
getFailedCount()
Gets number of failed processing.
|
String |
getFailedDesc()
Gets error description if last try was unsuccessful with error.
|
ErrorExtEnum |
getFailedErrorCode()
Gets error code if last try was unsuccessful with error.
|
String |
getFunnelComponentId()
Gets funnel component identifier.
|
String |
getFunnelValue()
Gets value for funnel filtering - you can have funnel that will ensure that there is only one processing
message with same funnel value.
|
Date |
getLastUpdateTimestamp()
Gets timestamp when the entity was changed last time.
|
Long |
getMsgId()
Gets unique message ID.
|
Date |
getMsgTimestamp()
Gets timestamp from source system.
|
String |
getObjectId()
Gets object ID that will be changed during message processing.
|
String |
getOperationName()
Gets operation name, e.g.
|
BindingTypeEnum |
getParentBindingType()
Gets type of binding between parent and child message.
|
Long |
getParentMsgId()
Gets ID of the parent message (if any).
|
String |
getPayload()
Gets body content (XML by default).
|
String |
getProcessId()
Gets process ID that serves for pairing more requests with one process.
|
int |
getProcessingPriority() |
Date |
getReceiveTimestamp()
Gets timestamp when message was received.
|
List<Request> |
getRequests()
Gets the set of referenced logged requests.
|
ServiceExtEnum |
getService()
Gets service name, e.g.
|
ExternalSystemExtEnum |
getSourceSystem()
Gets source system.
|
Date |
getStartProcessTimestamp()
Gets timestamp when the message started processing.
|
MsgStateEnum |
getState()
Gets message state.
|
int |
hashCode() |
boolean |
isExcludeFailedState()
Returns
true if FAILED state should be excluded from guaranteed order. |
boolean |
isGuaranteedOrder()
Gets flag (true/false) if route should be processed in guaranteed order or not.
|
boolean |
isParentMessage()
Is parent message that has child messages?
Note: binding between child and parent message must be
hard . |
void |
setBusinessError(String businessError) |
void |
setCorrelationId(String correlationId) |
void |
setCustomData(String customData) |
void |
setEntityType(EntityTypeExtEnum entityType) |
void |
setEnvelope(String envelope) |
void |
setExcludeFailedState(boolean excludeFailedState) |
void |
setFailedCount(int failedCount) |
void |
setFailedDesc(String failedDesc) |
void |
setFailedErrorCode(ErrorExtEnum failedErrorCode) |
void |
setFunnelComponentId(String funnelComponentId) |
void |
setFunnelValue(String funnelValue) |
void |
setGuaranteedOrder(boolean guaranteedOrder) |
void |
setLastUpdateTimestamp(Date lastUpdateTimestamp) |
void |
setMsgId(Long msgId) |
void |
setMsgTimestamp(Date msgTimestamp) |
void |
setObjectId(String objectId) |
void |
setOperationName(String operationName) |
void |
setParentBindingType(BindingTypeEnum parentBindingType) |
void |
setParentMessage(boolean parentMessage) |
void |
setParentMsgId(Long parentMsgId) |
void |
setPayload(String payload) |
void |
setProcessId(String processId) |
void |
setProcessingPriority(int processingPriority)
Sets priority of processing this message.
|
void |
setReceiveTimestamp(Date receiveTimestamp) |
void |
setService(ServiceExtEnum service) |
void |
setSourceSystem(ExternalSystemExtEnum sourceSystem) |
void |
setStartProcessTimestamp(Date startProcessTimestamp) |
void |
setState(MsgStateEnum state) |
String |
toHumanString()
Returns human readable entity identification with start and end round brackets.
|
String |
toString() |
public static final String ERR_DESC_SEPARATOR
public Message()
public Message(ExternalSystemExtEnum sourceSystem, String correlationId)
sourceSystem
- the source systemcorrelationId
- the correlation IDpublic Long getMsgId()
public void setMsgId(Long msgId)
public Date getMsgTimestamp()
public void setMsgTimestamp(Date msgTimestamp)
public Date getReceiveTimestamp()
public void setReceiveTimestamp(Date receiveTimestamp)
public ServiceExtEnum getService()
public void setService(ServiceExtEnum service)
public String getOperationName()
public void setOperationName(String operationName)
@Nullable public String getObjectId()
getEntityTypeInternal()
@Nullable public EntityTypeExtEnum getEntityType()
getObjectId()
public void setEntityType(@Nullable EntityTypeExtEnum entityType)
public String getCorrelationId()
public void setCorrelationId(String correlationId)
@Nullable public String getProcessId()
public String getPayload()
public void setPayload(String payload)
@Nullable public String getEnvelope()
null
because it's possible to turn off saving the envelope
with regards to performancepublic ExternalSystemExtEnum getSourceSystem()
public void setSourceSystem(ExternalSystemExtEnum sourceSystem)
public MsgStateEnum getState()
public void setState(MsgStateEnum state)
public Date getStartProcessTimestamp()
public void setStartProcessTimestamp(Date startProcessTimestamp)
public int getFailedCount()
public void setFailedCount(int failedCount)
@Nullable public ErrorExtEnum getFailedErrorCode()
public void setFailedErrorCode(@Nullable ErrorExtEnum failedErrorCode)
@Nullable public String getFailedDesc()
@Nullable public Date getLastUpdateTimestamp()
@Nullable public String getCustomData()
@Nullable public String getBusinessError()
public List<String> getBusinessErrorList()
@Nullable public Long getParentMsgId()
getParentBindingType()
@Nullable public BindingTypeEnum getParentBindingType()
getParentMsgId()
public void setParentBindingType(@Nullable BindingTypeEnum parentBindingType)
public boolean existHardParent()
hard
binding?true
for hard-binding parent message otherwise false
public boolean isParentMessage()
hard
.true
when this message is parent, otherwise false
public void setParentMessage(boolean parentMessage)
public String getFunnelValue()
getFunnelComponentId()
public void setFunnelValue(String funnelValue)
public String getFunnelComponentId()
getFunnelValue()
public void setFunnelComponentId(String funnelComponentId)
public boolean isGuaranteedOrder()
true
for guaranteed order otherwise false
getFunnelValue()
,
isExcludeFailedState()
public void setGuaranteedOrder(boolean guaranteedOrder)
public boolean isExcludeFailedState()
true
if FAILED state should be excluded from guaranteed order.
FAILED
state is used for guaranteed order by default;
This option has influence only if guaranteed processing order
is enabled.true
if FAILED state should be excludedisGuaranteedOrder()
public void setExcludeFailedState(boolean excludeFailedState)
public List<ExternalCall> getExternalCalls()
public List<Request> getRequests()
public int getProcessingPriority()
public void setProcessingPriority(int processingPriority)
processingPriority
- the priority numberpublic String toHumanString()
HumanReadable
toHumanString
in interface HumanReadable
Copyright © 2016. All rights reserved.