T
- The type of service handler interface.I
- The type of the thrift service.public final class ThriftRPCServer<T extends RPCServiceHandler,I>
extends com.google.common.util.concurrent.AbstractExecutionThreadService
Modifier and Type | Class and Description |
---|---|
static class |
ThriftRPCServer.Builder<I>
Builder for creating instance of ThriftRPCServer.
|
Modifier and Type | Method and Description |
---|---|
static <I> ThriftRPCServer.Builder<I> |
builder(Class<I> serviceType)
Creates a
ThriftRPCServer.Builder for creating instance of ThriftRPCServer . |
InetSocketAddress |
getBindAddress() |
protected void |
run() |
protected void |
shutDown() |
protected void |
startUp() |
protected void |
triggerShutdown() |
public static <I> ThriftRPCServer.Builder<I> builder(Class<I> serviceType)
ThriftRPCServer.Builder
for creating instance of ThriftRPCServer
.I
- Type of the thrift service.serviceType
- Class of the thrift service.ThriftRPCServer.Builder
.public InetSocketAddress getBindAddress()
protected void startUp() throws Exception
startUp
in class com.google.common.util.concurrent.AbstractExecutionThreadService
Exception
protected void shutDown() throws Exception
shutDown
in class com.google.common.util.concurrent.AbstractExecutionThreadService
Exception
protected void triggerShutdown()
triggerShutdown
in class com.google.common.util.concurrent.AbstractExecutionThreadService
Copyright © 2018 The Apache Software Foundation. All rights reserved.