Class NonblockingSocketServer.Builder
- java.lang.Object
-
- net.morimekta.providence.thrift.server.NonblockingSocketServer.Builder
-
- Enclosing class:
- NonblockingSocketServer
public static class NonblockingSocketServer.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 NonblockingSocketServer
start()
NonblockingSocketServer.Builder
withBindAddress(java.net.InetSocketAddress bindAddress)
NonblockingSocketServer.Builder
withInstrumentation(PServiceCallInstrumentation instrumentation)
NonblockingSocketServer.Builder
withMaxBacklog(int maxBacklog)
NonblockingSocketServer.Builder
withMaxFrameSizeInBytes(int size)
NonblockingSocketServer.Builder
withPort(int port)
NonblockingSocketServer.Builder
withReadTimeout(int timeoutInMs)
NonblockingSocketServer.Builder
withReceiverThreadFactory(java.util.concurrent.ThreadFactory factory)
NonblockingSocketServer.Builder
withSerializer(Serializer serializer)
NonblockingSocketServer.Builder
withWorkerThreadFactory(java.util.concurrent.ThreadFactory factory)
NonblockingSocketServer.Builder
withWorkerThreads(int numThreads)
-
-
-
Constructor Detail
-
Builder
public Builder(@Nonnull PProcessor processor)
-
-
Method Detail
-
withPort
public NonblockingSocketServer.Builder withPort(int port)
-
withBindAddress
public NonblockingSocketServer.Builder withBindAddress(@Nonnull java.net.InetSocketAddress bindAddress)
-
withMaxBacklog
public NonblockingSocketServer.Builder withMaxBacklog(int maxBacklog)
-
withMaxFrameSizeInBytes
public NonblockingSocketServer.Builder withMaxFrameSizeInBytes(int size)
-
withInstrumentation
public NonblockingSocketServer.Builder withInstrumentation(@Nonnull PServiceCallInstrumentation instrumentation)
-
withReadTimeout
public NonblockingSocketServer.Builder withReadTimeout(int timeoutInMs)
-
withWorkerThreads
public NonblockingSocketServer.Builder withWorkerThreads(int numThreads)
-
withWorkerThreadFactory
public NonblockingSocketServer.Builder withWorkerThreadFactory(java.util.concurrent.ThreadFactory factory)
-
withReceiverThreadFactory
public NonblockingSocketServer.Builder withReceiverThreadFactory(java.util.concurrent.ThreadFactory factory)
-
withSerializer
public NonblockingSocketServer.Builder withSerializer(Serializer serializer)
-
start
public NonblockingSocketServer start()
-
-