| Constructor and Description |
|---|
RpcServerImpl(InetSocketAddress socket,
RpcExecutionService executionService,
RpcMessageListener listener)
Construct a new server implementation that will listen for
incoming client connections on the specified socket.
|
RpcServerImpl(InetSocketAddress socket,
RpcMessageListener listener)
Construct a new server implementation that will listen for
incoming client connections on the specified socket.
|
| Modifier and Type | Method and Description |
|---|---|
RpcServer |
addImplementation(com.google.protobuf.Service service,
Class implementation)
Add a service to the server.
|
RpcServer |
start()
Bind to bootstrap socket and start accepting incoming connections and
requests.
|
void |
stop()
Stop the service.
|
public RpcServerImpl(InetSocketAddress socket, RpcMessageListener listener)
socket - The socket to listen for.listener - An optional listener. IF non-null, this listener
will listen in on all the messages flowing into the server.public RpcServerImpl(InetSocketAddress socket, RpcExecutionService executionService, RpcMessageListener listener)
socket - The socket to listen for.executionService - An execution service that will run incoming
requests.listener - An optional listener. IF non-null, this listener
will listen in on all the messages flowing into the server.public RpcServer start()
public RpcServer addImplementation(com.google.protobuf.Service service, Class implementation) throws RpcServerException
service - The implementation.implementation - The service being imolemented.RpcServerExceptionCopyright © 2013. All Rights Reserved.