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(net.morimekta.providence.PProcessor processor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NonblockingSocketServerstart()NonblockingSocketServer.BuilderwithBindAddress(java.net.InetSocketAddress bindAddress)NonblockingSocketServer.BuilderwithInstrumentation(net.morimekta.providence.util.ServiceCallInstrumentation instrumentation)NonblockingSocketServer.BuilderwithMaxBacklog(int maxBacklog)NonblockingSocketServer.BuilderwithMaxFrameSizeInBytes(int size)NonblockingSocketServer.BuilderwithPort(int port)NonblockingSocketServer.BuilderwithReadTimeout(int timeoutInMs)NonblockingSocketServer.BuilderwithReceiverThreadFactory(java.util.concurrent.ThreadFactory factory)NonblockingSocketServer.BuilderwithSerializer(net.morimekta.providence.serializer.Serializer serializer)NonblockingSocketServer.BuilderwithWorkerThreadFactory(java.util.concurrent.ThreadFactory factory)NonblockingSocketServer.BuilderwithWorkerThreads(int numThreads)
-
-
-
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 net.morimekta.providence.util.ServiceCallInstrumentation 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(net.morimekta.providence.serializer.Serializer serializer)
-
start
public NonblockingSocketServer start()
-
-