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(net.morimekta.providence.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(net.morimekta.providence.PServiceCallInstrumentation instrumentation)
SocketServer.Builder
withMaxBacklog(int maxBacklog)
SocketServer.Builder
withPort(int port)
SocketServer.Builder
withSerializer(net.morimekta.providence.serializer.Serializer serializer)
SocketServer.Builder
withThreadFactory(java.util.concurrent.ThreadFactory factory)
SocketServer.Builder
withWorkerThreads(int numThreads)
-
-
-
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 net.morimekta.providence.PServiceCallInstrumentation 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(net.morimekta.providence.serializer.Serializer serializer)
-
start
public SocketServer start()
-
-