public void requestMore(int batchFirst, int batchLast, ResultsReceiver<ResultsMessage> receiver) { this.requestResults(batchFirst, batchLast, receiver); this.doMoreWork(); }
public void requestMore(int batchFirst, int batchLast, ResultsReceiver<ResultsMessage> receiver) { if (span != null) { span.log("requested more results"); //$NON-NLS-1$ } this.requestResults(batchFirst, batchLast, receiver); this.doMoreWork(); }
public void requestMore(int batchFirst, int batchLast, ResultsReceiver<ResultsMessage> receiver) { if (span != null) { span.log("requested more results"); //$NON-NLS-1$ } this.requestResults(batchFirst, batchLast, receiver); this.doMoreWork(); }
public void requestClose() throws TeiidComponentException { if (this.state == ProcessingState.CLOSE || this.closeRequested) { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, "Request already closing" + requestID); //$NON-NLS-1$ } return; } if (!this.doneProducingBatches) { this.requestCancel("To immediately halt work as close was called"); //$NON-NLS-1$ //pending work should be canceled for fastest clean up } else { //it's safe to transition directly to close this.state = ProcessingState.CLOSE; } this.closeRequested = true; this.doMoreWork(); }
public void requestClose() throws TeiidComponentException { if (this.state == ProcessingState.CLOSE || this.closeRequested) { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, "Request already closing" + requestID); //$NON-NLS-1$ } return; } if (!this.doneProducingBatches) { this.requestCancel(); //pending work should be canceled for fastest clean up } else { //it's safe to transition directly to close this.state = ProcessingState.CLOSE; } this.closeRequested = true; this.doMoreWork(); }
public void requestClose() throws TeiidComponentException { if (this.state == ProcessingState.CLOSE || this.closeRequested) { if (LogManager.isMessageToBeRecorded(LogConstants.CTX_DQP, MessageLevel.DETAIL)) { LogManager.logDetail(LogConstants.CTX_DQP, "Request already closing" + requestID); //$NON-NLS-1$ } return; } if (!this.doneProducingBatches) { this.requestCancel("To immediately halt work as close was called"); //$NON-NLS-1$ //pending work should be canceled for fastest clean up } else { //it's safe to transition directly to close this.state = ProcessingState.CLOSE; } this.closeRequested = true; this.doMoreWork(); }