com.alipay.remoting.rpc.protocol
Class SyncUserProcessor<T>

java.lang.Object
  extended by com.alipay.remoting.rpc.protocol.AbstractUserProcessor<T>
      extended by com.alipay.remoting.rpc.protocol.SyncUserProcessor<T>
All Implemented Interfaces:
UserProcessor<T>

public abstract class SyncUserProcessor<T>
extends AbstractUserProcessor<T>

Extends this to process user defined request in SYNC way.
If you want process reqeuest in ASYNC way, please extends AsyncUserProcessor.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.alipay.remoting.rpc.protocol.UserProcessor
UserProcessor.ExecutorSelector
 
Field Summary
 
Fields inherited from class com.alipay.remoting.rpc.protocol.AbstractUserProcessor
executorSelector
 
Constructor Summary
SyncUserProcessor()
           
 
Method Summary
 void handleRequest(BizContext bizCtx, AsyncContext asyncCtx, T request)
          unsupported here!
abstract  Object handleRequest(BizContext bizCtx, T request)
          Handle request in sync way.
abstract  String interest()
          The class name of user request.
 
Methods inherited from class com.alipay.remoting.rpc.protocol.AbstractUserProcessor
getExecutor, getExecutorSelector, preHandleRequest, processInIOThread, setExecutorSelector, timeoutDiscard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncUserProcessor

public SyncUserProcessor()
Method Detail

handleRequest

public abstract Object handleRequest(BizContext bizCtx,
                                     T request)
                              throws Exception
Description copied from interface: UserProcessor
Handle request in sync way.

Returns:
Throws:
Exception
See Also:
UserProcessor.handleRequest(com.alipay.remoting.BizContext, java.lang.Object)

handleRequest

public void handleRequest(BizContext bizCtx,
                          AsyncContext asyncCtx,
                          T request)
unsupported here!

See Also:
UserProcessor.handleRequest(com.alipay.remoting.BizContext, com.alipay.remoting.AsyncContext, java.lang.Object)

interest

public abstract String interest()
Description copied from interface: UserProcessor
The class name of user request. Use String type to avoid classloader problem.

Returns:
See Also:
UserProcessor.interest()


Copyright © 2018. All rights reserved.