/** * Get JVM Client identifier * * @return Client identifier */ protected static String getClientID() { return getManager().getClientID(); }
@Override public long getClientId() { return manager.getClientID().toLong(); }
/** * Get JVM Client identifier * * @return Client identifier */ protected static String getClientID() { return getManager().getClientID().toString(); }
private void registerTransactionCompleteListener(final Object key, final AbstractLocalCacheStoreValue localCacheValue, final MapOperationType mapOperation) throws AssertionError { if (mapOperation.isMutateOperation()) { L1ServerMapLocalStoreTransactionCompletionListener listener = getTransactionCompleteListener(key, localCacheValue, mapOperation); if (listener == null) { throw new AssertionError("Transaction Complete Listener cannot be null for mutate ops"); } ClientTransaction txn = this.objectManager.getTransactionManager().getCurrentTransaction(); if (txn == null) { throw new UnlockedSharedObjectException( "Attempt to access a shared object outside the scope of a shared lock.", Thread.currentThread().getName(), manager .getClientID()); } keyToListeners.put(key, listener); txn.addTransactionCompleteListener(listener); } }
private void registerTransactionCompleteListener(final Object key, final AbstractLocalCacheStoreValue localCacheValue, final MapOperationType mapOperation) throws AssertionError { if (mapOperation.isMutateOperation()) { L1ServerMapLocalStoreTransactionCompletionListener listener = getTransactionCompleteListener(key, localCacheValue, mapOperation); if (listener == null) { throw new AssertionError("Transaction Complete Listener cannot be null for mutate ops"); } ClientTransaction txn = this.objectManager.getTransactionManager().getCurrentTransaction(); if (txn == null) { throw new UnlockedSharedObjectException( "Attempt to access a shared object outside the scope of a shared lock.", Thread.currentThread().getName(), manager .getClientID().toLong()); } keyToListeners.put(key, listener); txn.addTransactionCompleteListener(listener); } }