Package com.sun.sgs.service

Examples of com.sun.sgs.service.TransactionListener.beforeCompletion()


       * possibility that a beforeCompletion call adds another listener.
       */
      for (int i = 0; i < listeners.size(); i++) {
    TransactionListener listener = listeners.get(i);
    try {
        listener.beforeCompletion();
    } catch (RuntimeException e) {
        if (logger.isLoggable(Level.FINEST)) {
      logger.logThrow(
          Level.FINEST, e,
          "beforeCompletion {0} listener:{1} failed",
View Full Code Here


    try {
                    if (listenerDetailMap != null) {
                        detail = listenerDetailMap.get(listener.getTypeName());
                        startTime = System.currentTimeMillis();
                    }
        listener.beforeCompletion();
                    if (detail != null) {
                        long time = System.currentTimeMillis() - startTime;
                        detail.setCalledBeforeCompletion(false, time);
                    }
    } catch (RuntimeException e) {
View Full Code Here

    try {
                    if (listenerDetailMap != null) {
                        detail = listenerDetailMap.get(listener.getTypeName());
                        startTime = System.currentTimeMillis();
                    }
        listener.beforeCompletion();
                    if (detail != null) {
                        long time = System.currentTimeMillis() - startTime;
                        detail.setCalledBeforeCompletion(false, time);
                    }
    } catch (RuntimeException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.