@Entity public class ExternalCall extends Object implements HumanReadable
message ID
.
There are only confirmations which failed previously.Modifier and Type | Field and Description |
---|---|
static String |
CONFIRM_OPERATION |
Constructor and Description |
---|
ExternalCall()
Default public constructor.
|
Modifier and Type | Method and Description |
---|---|
static ExternalCall |
createFailedConfirmation(Message msg)
Creates new
failed confirmation call. |
static ExternalCall |
createProcessingCall(String operationName,
String entityId,
Message msg)
Creates a new external call with
processing state. |
boolean |
equals(Object obj) |
Date |
getCreationTimestamp()
Gets creation date of this entity.
|
String |
getEntityId()
Gets entity ID.
|
int |
getFailedCount()
Gets count of failed tries.
|
Long |
getId()
Gets unique external call ID.
|
Date |
getLastUpdateTimestamp()
Gets timestamp when the entity was changed last time.
|
Message |
getMessage()
Gets main asynch.
|
Long |
getMsgId()
Gets parent message ID.
|
Date |
getMsgTimestamp()
Gets message timestamp from source system.
|
String |
getOperationName()
Gets target operation identification (e.g.
|
ExternalCallStateEnum |
getState()
Gets state of processing.
|
int |
hashCode() |
boolean |
isConfirmationCall()
Gets
true when external call represents confirmation call. |
void |
setCreationTimestamp(Date creationTimestamp) |
void |
setEntityId(String entityId) |
void |
setFailedCount(int failedCount) |
void |
setId(Long id) |
void |
setLastUpdateTimestamp(Date lastUpdateTimestamp) |
void |
setMessage(Message message) |
void |
setMsgId(Long msgId) |
void |
setMsgTimestamp(Date msgTimestamp) |
void |
setOperationName(String operationName) |
void |
setState(ExternalCallStateEnum state) |
String |
toHumanString()
Returns human readable entity identification with start and end round brackets.
|
String |
toString() |
public static final String CONFIRM_OPERATION
public static ExternalCall createFailedConfirmation(Message msg)
failed
confirmation call.msg
- the messagepublic static ExternalCall createProcessingCall(String operationName, String entityId, Message msg)
processing
state.msg
- the messagepublic Long getId()
public void setId(Long id)
public Long getMsgId()
public void setMsgId(Long msgId)
public Message getMessage()
public void setMessage(Message message)
public String getOperationName()
public void setOperationName(String operationName)
public ExternalCallStateEnum getState()
public void setState(ExternalCallStateEnum state)
public String getEntityId()
public void setEntityId(String entityId)
public Date getCreationTimestamp()
public void setCreationTimestamp(Date creationTimestamp)
public Date getLastUpdateTimestamp()
public void setLastUpdateTimestamp(Date lastUpdateTimestamp)
public Date getMsgTimestamp()
Message.getMsgTimestamp()
public void setMsgTimestamp(Date msgTimestamp)
public int getFailedCount()
isConfirmationCall()
is true
.public void setFailedCount(int failedCount)
public boolean isConfirmationCall()
true
when external call represents confirmation call.true
for confirmation call, otherwise false
public String toHumanString()
HumanReadable
toHumanString
in interface HumanReadable
Copyright © 2016. All rights reserved.