Class Util


  • public class Util
    extends Object
    Util operations to handle client transactions in Hot Rod server.
    Since:
    9.4
    Author:
    Pedro Ruivo
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • rollbackLocalTransaction

        public static void rollbackLocalTransaction​(AdvancedCache<?,​?> cache,
                                                    XidImpl xid,
                                                    long timeout)
                                             throws javax.transaction.HeuristicRollbackException,
                                                    javax.transaction.HeuristicMixedException
        Throws:
        javax.transaction.HeuristicRollbackException
        javax.transaction.HeuristicMixedException
      • commitLocalTransaction

        public static void commitLocalTransaction​(AdvancedCache<?,​?> cache,
                                                  XidImpl xid,
                                                  long timeout)
                                           throws javax.transaction.HeuristicRollbackException,
                                                  javax.transaction.HeuristicMixedException,
                                                  javax.transaction.RollbackException
        Throws:
        javax.transaction.HeuristicRollbackException
        javax.transaction.HeuristicMixedException
        javax.transaction.RollbackException