本文整理了Java中java.util.concurrent.LinkedBlockingDeque.pop()
方法的一些代码示例,展示了LinkedBlockingDeque.pop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LinkedBlockingDeque.pop()
方法的具体详情如下:
包路径:java.util.concurrent.LinkedBlockingDeque
类名称:LinkedBlockingDeque
方法名:pop
暂无
代码示例来源:origin: winder/Universal-G-Code-Sender
nextCommand = new GcodeCommand(commandBuffer.pop());
代码示例来源:origin: winder/Universal-G-Code-Sender
/**
* Processes message from GRBL. This should only be called from the
* connection object.
* @param response
*/
@Override
public void responseMessage(String response) {
// Send this information back up to the Controller.
dispatchListenerEvents(SerialCommunicatorEvent.RAW_RESPONSE, response);
// Pause if there was an error and if there are more commands queued
if (processedCommandIsError(response) &&
(nextCommand != null // No cached command
|| (activeCommandList.size() > 1) // No more commands (except for the one being popped further down)
|| (commandStream != null && commandStream.getNumRowsRemaining() > 0) // No more rows in stream
|| (commandBuffer != null && commandBuffer.size() > 0))) { // No commands in buffer
pauseSend();
dispatchListenerEvents(PAUSED, "");
}
// Keep the data flow going in case of an "ok" or an "error".
if (processedCommand(response)) {
// Pop the front of the active list.
if (this.activeCommandList != null && this.activeCommandList.size() > 0) {
GcodeCommand command = this.activeCommandList.pop();
this.sentBufferSize -= (command.getCommandString().length() + 1);
if (!isPaused()) {
this.streamCommands();
}
}
}
}
代码示例来源:origin: EvoSuite/evosuite
public void testMe(LinkedBlockingDeque<Integer> integerDeque) {
int x = integerDeque.pop();
}
}
代码示例来源:origin: org.jboss.seam.transaction/seam-transaction
public T pop() {
LinkedBlockingDeque<T> queue = stack.get();
if (queue == null) {
throw new NoSuchElementException();
}
T t = queue.pop();
if (queue.isEmpty()) {
stack.remove();
}
return t;
}
代码示例来源:origin: dhanji/sitebricks
MailClient.WireError lastError() {
return errorStack.peek() != null ? errorStack.pop() : null;
}
内容来源于网络,如有侵权,请联系作者删除!