@Override public void onCompletion(FutureWork<AtomicResultsMessage> future) { if (!cancelAsynch) { workItem.moreWork(); //this is not necessary in some situations with DataNotAvailable } }
@Override public void onCompletion(FutureWork<T> future) { RequestWorkItem.this.moreWork(); } });
@Override public void onCompletion(FutureWork<T> future) { RequestWorkItem.this.moreWork(); } });
@Override public void onCompletion(FutureWork<AtomicResultsMessage> future) { if (!cancelAsynch) { workItem.moreWork(); //this is not necessary in some situations with DataNotAvailable } }
@Override public void onCompletion(FutureWork<AtomicResultsMessage> future) { if (!cancelAsynch) { workItem.moreWork(); //this is not necessary in some situations with DataNotAvailable } }
@Override public void run() { RequestWorkItem item = ref.get(); if (item != null) { item.moreWork(); } } }
@Override public void run() { RequestWorkItem item = ref.get(); if (item != null) { item.moreWork(); } } }
@Override public void run() { RequestWorkItem item = ref.get(); if (item != null) { item.moreWork(); } } }
@Override public synchronized void dataAvailable() { RequestWorkItem requestWorkItem = this.commandContext.getWorkItem(); dataAvailable = true; if (requestWorkItem != null) { requestWorkItem.moreWork(); } }
@Override public synchronized void dataAvailable() { RequestWorkItem requestWorkItem = this.commandContext.getWorkItem(); dataAvailable = true; if (requestWorkItem != null) { requestWorkItem.moreWork(); } }
private void signalMore() { if (!done.get()) { synchronized (workItem) { if (workItem.getThreadState() != ThreadState.MORE_WORK) { workItem.moreWork(); } } } }
private void signalMore() { if (!done.get()) { synchronized (workItem) { if (workItem.getThreadState() != ThreadState.MORE_WORK) { workItem.moreWork(); } } } }
@Override public synchronized void dataAvailable() { RequestWorkItem requestWorkItem = this.commandContext.getWorkItem(); dataAvailable = true; if (requestWorkItem != null) { requestWorkItem.moreWork(); } }
private void signalMore() { if (!done.get()) { synchronized (workItem) { if (workItem.getThreadState() != ThreadState.MORE_WORK) { workItem.moreWork(); } } } }
private synchronized void setState(MatState state, Boolean valid) { MatState oldState = this.state; long timestamp = System.currentTimeMillis(); LogManager.logDetail(LogConstants.CTX_MATVIEWS, this, "setting matState to", state, valid, timestamp, "old values", oldState, this.valid); //$NON-NLS-1$ //$NON-NLS-2$ if (valid != null) { this.valid = valid; } this.state = state; this.updateTime = System.currentTimeMillis(); for (WeakReference<RequestWorkItem> request : waiters.values()) { RequestWorkItem workItem = request.get(); if (workItem != null) { workItem.moreWork(); } } waiters.clear(); }
private synchronized void setState(MatState state, Boolean valid) { MatState oldState = this.state; long timestamp = System.currentTimeMillis(); LogManager.logDetail(LogConstants.CTX_MATVIEWS, this, "setting matState to", state, valid, timestamp, "old values", oldState, this.valid); //$NON-NLS-1$ //$NON-NLS-2$ if (valid != null) { this.valid = valid; } this.state = state; this.updateTime = System.currentTimeMillis(); for (WeakReference<RequestWorkItem> request : waiters.values()) { RequestWorkItem workItem = request.get(); if (workItem != null) { workItem.moreWork(); } } waiters.clear(); }
private synchronized void setState(MatState state, Boolean valid) { MatState oldState = this.state; long timestamp = System.currentTimeMillis(); LogManager.logDetail(LogConstants.CTX_MATVIEWS, this, "setting matState to", state, valid, timestamp, "old values", oldState, this.valid); //$NON-NLS-1$ //$NON-NLS-2$ if (valid != null) { this.valid = valid; } this.state = state; this.updateTime = System.currentTimeMillis(); for (WeakReference<RequestWorkItem> request : waiters.values()) { RequestWorkItem workItem = request.get(); if (workItem != null) { workItem.moreWork(); } } waiters.clear(); }
/** * Special call from request threads to allow resumption of processing by * the calling thread. */ public void doMoreWork() { boolean run = false; synchronized (this) { moreWork(); if (!useCallingThread || this.getThreadState() != ThreadState.MORE_WORK) { return; } run = !hasThread; } if (run) { //run outside of the lock LogManager.logDetail(LogConstants.CTX_DQP, "Restarting processing using the calling thread", requestID); //$NON-NLS-1$ run(); } }
/** * Special call from request threads to allow resumption of processing by * the calling thread. */ public void doMoreWork() { boolean run = false; synchronized (this) { moreWork(); if (!useCallingThread || this.getThreadState() != ThreadState.MORE_WORK) { return; } run = !hasThread; } if (run) { //run outside of the lock LogManager.logDetail(LogConstants.CTX_DQP, "Restarting processing using the calling thread", requestID); //$NON-NLS-1$ run(); } }
/** * Special call from request threads to allow resumption of processing by * the calling thread. */ public void doMoreWork() { boolean run = false; synchronized (this) { moreWork(); if (!useCallingThread || this.getThreadState() != ThreadState.MORE_WORK) { return; } run = !hasThread; } if (run) { //run outside of the lock LogManager.logDetail(LogConstants.CTX_DQP, "Restarting processing using the calling thread", requestID); //$NON-NLS-1$ run(); } }