public class RemotingServerDelegate extends Object
Constructor and Description |
---|
RemotingServerDelegate(com.lts.job.remoting.RemotingServer remotingServer) |
Modifier and Type | Method and Description |
---|---|
void |
invokeAsync(io.netty.channel.Channel channel,
com.lts.job.remoting.protocol.RemotingCommand request,
com.lts.job.remoting.InvokeCallback invokeCallback) |
void |
invokeOneway(io.netty.channel.Channel channel,
com.lts.job.remoting.protocol.RemotingCommand request) |
com.lts.job.remoting.protocol.RemotingCommand |
invokeSync(io.netty.channel.Channel channel,
com.lts.job.remoting.protocol.RemotingCommand request) |
void |
registerDefaultProcessor(com.lts.job.remoting.netty.NettyRequestProcessor processor,
ExecutorService executor) |
void |
registerProcessor(int requestCode,
com.lts.job.remoting.netty.NettyRequestProcessor processor,
ExecutorService executor) |
void |
shutdown() |
void |
start() |
public RemotingServerDelegate(com.lts.job.remoting.RemotingServer remotingServer)
public void start()
public void registerProcessor(int requestCode, com.lts.job.remoting.netty.NettyRequestProcessor processor, ExecutorService executor)
public void registerDefaultProcessor(com.lts.job.remoting.netty.NettyRequestProcessor processor, ExecutorService executor)
public com.lts.job.remoting.protocol.RemotingCommand invokeSync(io.netty.channel.Channel channel, com.lts.job.remoting.protocol.RemotingCommand request) throws RemotingSendException, com.lts.job.remoting.exception.RemotingCommandFieldCheckException
RemotingSendException
com.lts.job.remoting.exception.RemotingCommandFieldCheckException
public void invokeAsync(io.netty.channel.Channel channel, com.lts.job.remoting.protocol.RemotingCommand request, com.lts.job.remoting.InvokeCallback invokeCallback) throws com.lts.job.remoting.exception.RemotingCommandFieldCheckException, RemotingSendException
com.lts.job.remoting.exception.RemotingCommandFieldCheckException
RemotingSendException
public void invokeOneway(io.netty.channel.Channel channel, com.lts.job.remoting.protocol.RemotingCommand request) throws com.lts.job.remoting.exception.RemotingCommandFieldCheckException, RemotingSendException
com.lts.job.remoting.exception.RemotingCommandFieldCheckException
RemotingSendException
public void shutdown()
Copyright © 2014. All Rights Reserved.