public static class NonblockingSocketServer.Builder extends Object
| Constructor and Description |
|---|
Builder(PProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
NonblockingSocketServer |
start() |
NonblockingSocketServer.Builder |
withBindAddress(InetSocketAddress bindAddress) |
NonblockingSocketServer.Builder |
withInstrumentation(ServiceCallInstrumentation 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(Serializer serializer) |
NonblockingSocketServer.Builder |
withWorkerThreadFactory(ThreadFactory factory) |
NonblockingSocketServer.Builder |
withWorkerThreads(int numThreads) |
public Builder(@Nonnull 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 ServiceCallInstrumentation 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(Serializer serializer)
public NonblockingSocketServer start()
Copyright © 2015–2018 morimekta.net. All rights reserved.