@Override protected AsyncUpdateCallback newAsyncUpdateCallback(NodeStore store, String name, long leaseTimeOut, String beforeCheckpoint, AsyncIndexStats indexStats, AtomicBoolean stopFlag) { try { asyncLock.acquire(); } catch (InterruptedException ignore) { } return super.newAsyncUpdateCallback(store, name, leaseTimeOut, beforeCheckpoint, indexStats, stopFlag); } };
@Override protected AsyncUpdateCallback newAsyncUpdateCallback(NodeStore store, String name, long leaseTimeOut, String beforeCheckpoint, AsyncIndexStats indexStats, AtomicBoolean stopFlag) { try { asyncLock.acquire(); } catch (InterruptedException ignore) { } return super.newAsyncUpdateCallback(store, name, leaseTimeOut, beforeCheckpoint, indexStats, stopFlag); } };
AsyncUpdateCallback callback = newAsyncUpdateCallback(store, name, leaseTimeOut, beforeCheckpoint, indexStats, forcedStopFlag);
AsyncUpdateCallback callback = newAsyncUpdateCallback(store, name, leaseTimeOut, beforeCheckpoint, indexStats, forcedStopFlag);
AsyncUpdateCallback callback = newAsyncUpdateCallback(store, name, leaseTimeOut, beforeCheckpoint, indexStats, forcedStopFlag);