/** {@inheritDoc} */ @Override public boolean isRollbackOnly() { enter(); try { return tx.isRollbackOnly(); } finally { leave(); } }
/** * @param tx Transaction. * @return String view of all safe-to-print transaction properties. */ public static String txString(@Nullable GridCacheTx tx) { if (tx == null) return "null"; return tx.getClass().getSimpleName() + "[id=" + tx.xid() + ", concurrency=" + tx.concurrency() + ", isolation=" + tx.isolation() + ", state=" + tx.state() + ", invalidate=" + tx.isInvalidate() + ", rollbackOnly=" + tx.isRollbackOnly() + ", nodeId=" + tx.nodeId() + ", duration=" + (U.currentTimeMillis() - tx.startTime()) + ']'; }