/** Returns (or creates) the instance of the distributed TXLockService */ public static TXLockService createDTLS() { synchronized (TXLockService.class) { if (DTLS == null || DTLS.isDestroyed()) { DTLS = new TXLockServiceImpl(DLockService.DTLS); } return DTLS; } }
/** * Destroys this tx lock service and removes the static reference to it. */ public void destroy() { synchronized (TXLockService.class) { if (!isDestroyed()) { basicDestroy(); if (this == DTLS) DTLS = null; } } }