Example usage for javax.transaction TransactionManager hashCode

List of usage examples for javax.transaction TransactionManager hashCode

Introduction

In this page you can find the example usage for javax.transaction TransactionManager hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.apache.synapse.commons.transaction.TranscationManger.java

public static void lookUp(Context txContext) throws Exception {
    long key = Thread.currentThread().getId();
    Map<Long, TransactionManager> txMgrMap = txManagers.get();
    if (txMgrMap.containsKey(key)) {

    } else {/*from  w  ww  . ja v  a 2 s .  c  o m*/
        TransactionManager transactionManager = (TransactionManager) txContext
                .lookup(TRANSCATION_MANGER_LOOKUP_STR);
        txMgrMap.put(key, transactionManager);
        if (log.isDebugEnabled()) {
            StringBuilder logMsg = new StringBuilder();
            logMsg.append(" Transaction Mgr Hashcode : " + transactionManager.hashCode()).append("\n")
                    .append(" Transaction Mgr  : " + transactionManager);
            log.debug(logMsg.toString());

        }

    }

}