org.voovan.network.handler.SynchronousHandler Maven / Gradle / Ivy
package org.voovan.network.handler;
import org.voovan.network.IoHandler;
import org.voovan.network.IoSession;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/**
* Socket 同步通信 handler
*
* @author helyho
*
* Voovan Framework.
* WebSite: https://github.com/helyho/Voovan
* Licence: Apache v2 License
*/
public class SynchronousHandler implements IoHandler {
//Socket 响应队列
private ArrayBlockingQueue