public interface Lra
Long Running Action managed by coordinator.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HeaderName
LRA header name.static final HeaderName
LRA ended header name.static final HeaderName
LRA parent header name.static final HeaderName
LRA recovery header name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isChild()
Returns true if this LRA has parent LRA.lraId()
ID of the LRA used by this coordinator.parentId()
LRA ID of the parent LRA if this LRA has any.All participants enrolled in this LRA.status()
Status of this LRA.long
timeout()
Returns exact time when will LRA timeout in millis.
-
Field Details
-
LRA_HTTP_CONTEXT_HEADER_NAME
LRA header name. -
LRA_HTTP_ENDED_CONTEXT_HEADER_NAME
LRA ended header name. -
LRA_HTTP_PARENT_CONTEXT_HEADER_NAME
LRA parent header name. -
LRA_HTTP_RECOVERY_HEADER_NAME
LRA recovery header name.
-
-
Method Details
-
lraId
String lraId()ID of the LRA used by this coordinator.- Returns:
- lraId without coordinator URI prefix
-
parentId
String parentId()LRA ID of the parent LRA if this LRA has any.- Returns:
- id of parent LRA or null
-
isChild
boolean isChild()Returns true if this LRA has parent LRA.- Returns:
- true if LRA has parent
-
timeout
long timeout()Returns exact time when will LRA timeout in millis.- Returns:
- time of timeout in millis
-
participants
List<Participant> participants()All participants enrolled in this LRA.- Returns:
- list of participants enrolled in this LRA
-
status
LRAStatus status()Status of this LRA.- Returns:
- status
-