Package com.taobao.zeus.socket.worker.reqresp

Examples of com.taobao.zeus.socket.worker.reqresp.WorkerBeExecute


    if(sm.getKind()==Kind.REQUEST){
      final Request request=Request.newBuilder().mergeFrom(sm.getBody()).build();
      Operate op=request.getOperate();
      if(op==Operate.Schedule || op==Operate.Manual || op==Operate.Debug){
        completionService.submit(new Callable<Response>() {
          private WorkerBeExecute execute=new WorkerBeExecute();
          public Response call() throws Exception {
            return execute.execute(context, request).get();
          }
        });
      }else if(request.getOperate()==Operate.Cancel){
        completionService.submit(new Callable<Response>() {
          private WorkerBeCancel cancel=new WorkerBeCancel();
View Full Code Here

TOP

Related Classes of com.taobao.zeus.socket.worker.reqresp.WorkerBeExecute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.