Class SocketServer.Builder
- java.lang.Object
-
- net.morimekta.providence.thrift.server.SocketServer.Builder
-
- Enclosing class:
- SocketServer
public static class SocketServer.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(PProcessor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketServer
start()
SocketServer.Builder
withBindAddress(java.net.InetSocketAddress bindAddress)
SocketServer.Builder
withClientTimeout(int timeoutInMs)
SocketServer.Builder
withInstrumentation(ServiceCallInstrumentation instrumentation)
SocketServer.Builder
withMaxBacklog(int maxBacklog)
SocketServer.Builder
withPort(int port)
SocketServer.Builder
withSerializer(Serializer serializer)
SocketServer.Builder
withThreadFactory(java.util.concurrent.ThreadFactory factory)
SocketServer.Builder
withWorkerThreads(int numThreads)
-
-
-
Constructor Detail
-
Builder
public Builder(@Nonnull PProcessor processor)
-
-
Method Detail
-
withPort
public SocketServer.Builder withPort(int port)
-
withBindAddress
public SocketServer.Builder withBindAddress(@Nonnull java.net.InetSocketAddress bindAddress)
-
withMaxBacklog
public SocketServer.Builder withMaxBacklog(int maxBacklog)
-
withInstrumentation
public SocketServer.Builder withInstrumentation(@Nonnull ServiceCallInstrumentation instrumentation)
-
withClientTimeout
public SocketServer.Builder withClientTimeout(int timeoutInMs)
-
withWorkerThreads
public SocketServer.Builder withWorkerThreads(int numThreads)
-
withThreadFactory
public SocketServer.Builder withThreadFactory(java.util.concurrent.ThreadFactory factory)
-
withSerializer
public SocketServer.Builder withSerializer(Serializer serializer)
-
start
public SocketServer start()
-
-