Package oracle.tmm.tcc.vo
Class TccParticipant
java.lang.Object
oracle.tmm.tcc.vo.TccParticipant
TccParticipantTransaction - TCC Participant attributes
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize TCC participantTccParticipant
(String uri) Initialize TCC participant with resource URITccParticipant
(String uri, long timeLimitInMilliSeconds) Initialize TCC participant with resource URI and time limit -
Method Summary
Modifier and TypeMethodDescriptionGet TCC participant statuslong
Get the absolute time limit in milliseconds passed from Jan 1st 1970 UTC for the current TCC transactiongetUri()
Get participant resource URIvoid
setStatus
(TccParticipantStatus status) Set TCC participant statusvoid
setTimeLimit
(long timeLimit) Set TCC transaction time limit in millisecondsvoid
Set participant resource URItoString()
-
Constructor Details
-
TccParticipant
public TccParticipant()Initialize TCC participant -
TccParticipant
Initialize TCC participant with resource URI- Parameters:
uri
- rest API of the participant that receives PUT HTTP request for confirm or DELETE HTTP request for cancel
-
TccParticipant
Initialize TCC participant with resource URI and time limit- Parameters:
uri
- resource URItimeLimitInMilliSeconds
- time limit in milliseconds
-
-
Method Details
-
getUri
Get participant resource URI- Returns:
- resource URI
-
setUri
Set participant resource URI- Parameters:
uri
- resource URI
-
getTimeLimit
public long getTimeLimit()Get the absolute time limit in milliseconds passed from Jan 1st 1970 UTC for the current TCC transaction- Returns:
- absolute time limit in milliseconds passed from Jan 1st 1970 UTC for the current TCC transaction
-
setTimeLimit
public void setTimeLimit(long timeLimit) Set TCC transaction time limit in milliseconds- Parameters:
timeLimit
- TCC transaction time limit in milliseconds
-
getStatus
Get TCC participant status- Returns:
- TCC participant status @link{oracle.tmm.tcc.TccParticipantStatus}
-
setStatus
Set TCC participant status- Parameters:
status
- TCC participant status
-
toString
-