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 TypeMethodDescriptionoracle.tmm.tcc.TccParticipantStatusGet TCC participant statuslongGet the absolute time limit in milliseconds passed from Jan 1st 1970 UTC for the current TCC transactiongetUri()Get participant resource URIvoidsetStatus(oracle.tmm.tcc.TccParticipantStatus status) Set TCC participant statusvoidsetTimeLimit(long timeLimit) Set TCC transaction time limit in millisecondsvoidSet 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
public oracle.tmm.tcc.TccParticipantStatus getStatus()Get TCC participant status- Returns:
- TCC participant status @link{oracle.tmm.tcc.TccParticipantStatus}
-
setStatus
public void setStatus(oracle.tmm.tcc.TccParticipantStatus status) Set TCC participant status- Parameters:
status- TCC participant status
-
toString
-