public interface Lra
Long Running Action managed by coordinator.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final HeaderNameLRA header name.static final HeaderNameLRA ended header name.static final HeaderNameLRA parent header name.static final HeaderNameLRA recovery header name.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisChild()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.longtimeout()Returns exact time when will LRA timeout in millis.
- 
Field Details- 
LRA_HTTP_CONTEXT_HEADER_NAMELRA header name.
- 
LRA_HTTP_ENDED_CONTEXT_HEADER_NAMELRA ended header name.
- 
LRA_HTTP_PARENT_CONTEXT_HEADER_NAMELRA parent header name.
- 
LRA_HTTP_RECOVERY_HEADER_NAMELRA recovery header name.
 
- 
- 
Method Details- 
lraIdString lraId()ID of the LRA used by this coordinator.- Returns:
- lraId without coordinator URI prefix
 
- 
parentIdString parentId()LRA ID of the parent LRA if this LRA has any.- Returns:
- id of parent LRA or null
 
- 
isChildboolean isChild()Returns true if this LRA has parent LRA.- Returns:
- true if LRA has parent
 
- 
timeoutlong timeout()Returns exact time when will LRA timeout in millis.- Returns:
- time of timeout in millis
 
- 
participantsList<Participant> participants()All participants enrolled in this LRA.- Returns:
- list of participants enrolled in this LRA
 
- 
statusLRAStatus status()Status of this LRA.- Returns:
- status
 
 
-