Class TccParticipant

java.lang.Object
oracle.tmm.tcc.vo.TccParticipant

public class TccParticipant extends Object
TccParticipantTransaction - TCC Participant attributes
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initialize TCC participant
    Initialize TCC participant with resource URI
    TccParticipant(String uri, long timeLimitInMilliSeconds)
    Initialize TCC participant with resource URI and time limit
  • Method Summary

    Modifier and Type
    Method
    Description
    oracle.tmm.tcc.TccParticipantStatus
    Get TCC participant status
    long
    Get the absolute time limit in milliseconds passed from Jan 1st 1970 UTC for the current TCC transaction
    Get participant resource URI
    void
    setStatus(oracle.tmm.tcc.TccParticipantStatus status)
    Set TCC participant status
    void
    setTimeLimit(long timeLimit)
    Set TCC transaction time limit in milliseconds
    void
    Set participant resource URI
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TccParticipant

      public TccParticipant()
      Initialize TCC participant
    • TccParticipant

      public TccParticipant(String uri)
      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

      public TccParticipant(String uri, long timeLimitInMilliSeconds)
      Initialize TCC participant with resource URI and time limit
      Parameters:
      uri - resource URI
      timeLimitInMilliSeconds - time limit in milliseconds
  • Method Details

    • getUri

      public String getUri()
      Get participant resource URI
      Returns:
      resource URI
    • setUri

      public void setUri(String uri)
      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

      public String toString()
      Overrides:
      toString in class Object