Class Decoder

java.lang.Object
bitronix.tm.utils.Decoder

public class Decoder extends Object
Constant to string decoder.
Author:
lorban
  • Constructor Details

    • Decoder

      public Decoder()
  • Method Details

    • decodeXAExceptionErrorCode

      public static String decodeXAExceptionErrorCode(XAException ex)
    • decodeStatus

      public static String decodeStatus(int status)
    • decodeXAResourceFlag

      public static String decodeXAResourceFlag(int flag)
    • decodePrepareVote

      public static String decodePrepareVote(int vote)
    • decodeHeaderState

      public static String decodeHeaderState(byte state)
    • decodeXAStatefulHolderState

      public static String decodeXAStatefulHolderState(int state)
    • collectResourcesNames

      public static String collectResourcesNames(Collection<XAResourceHolderState> resources)
      Create a String representation of a list of XAResourceHolders. This String will contain each resource's unique name.
      Parameters:
      resources - a list of XAResourceHolders.
      Returns:
      a String representation of the list.