public static class NonblockingSocketServer.Builder extends Object
| Constructor and Description |
|---|
Builder(net.morimekta.providence.PProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
NonblockingSocketServer |
start() |
NonblockingSocketServer.Builder |
withBindAddress(InetSocketAddress bindAddress) |
NonblockingSocketServer.Builder |
withInstrumentation(net.morimekta.providence.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(ThreadFactory factory) |
NonblockingSocketServer.Builder |
withSerializer(net.morimekta.providence.serializer.Serializer serializer) |
NonblockingSocketServer.Builder |
withWorkerThreadFactory(ThreadFactory factory) |
NonblockingSocketServer.Builder |
withWorkerThreads(int numThreads) |
public Builder(@Nonnull net.morimekta.providence.PProcessor processor)
public NonblockingSocketServer.Builder withPort(int port)
public NonblockingSocketServer.Builder withBindAddress(@Nonnull InetSocketAddress bindAddress)
public NonblockingSocketServer.Builder withMaxBacklog(int maxBacklog)
public NonblockingSocketServer.Builder withMaxFrameSizeInBytes(int size)
public NonblockingSocketServer.Builder withInstrumentation(@Nonnull net.morimekta.providence.PServiceCallInstrumentation instrumentation)
public NonblockingSocketServer.Builder withReadTimeout(int timeoutInMs)
public NonblockingSocketServer.Builder withWorkerThreads(int numThreads)
public NonblockingSocketServer.Builder withWorkerThreadFactory(ThreadFactory factory)
public NonblockingSocketServer.Builder withReceiverThreadFactory(ThreadFactory factory)
public NonblockingSocketServer.Builder withSerializer(net.morimekta.providence.serializer.Serializer serializer)
public NonblockingSocketServer start()
Copyright © 2015–2020 morimekta.net. All rights reserved.