public static class SocketServer.Builder extends Object
Constructor and Description |
---|
Builder(PProcessor processor) |
Modifier and Type | Method and Description |
---|---|
SocketServer |
start() |
SocketServer.Builder |
withBindAddress(InetSocketAddress bindAddress) |
SocketServer.Builder |
withClientTimeout(int timeoutInMs) |
SocketServer.Builder |
withInstrumentation(ServiceCallInstrumentation instrumentation) |
SocketServer.Builder |
withMaxBacklog(int maxBacklog) |
SocketServer.Builder |
withPort(int port) |
SocketServer.Builder |
withSerializer(Serializer serializer) |
SocketServer.Builder |
withThreadFactory(ThreadFactory factory) |
SocketServer.Builder |
withWorkerThreads(int numThreads) |
public Builder(@Nonnull PProcessor processor)
public SocketServer.Builder withPort(int port)
public SocketServer.Builder withBindAddress(@Nonnull InetSocketAddress bindAddress)
public SocketServer.Builder withMaxBacklog(int maxBacklog)
public SocketServer.Builder withInstrumentation(@Nonnull ServiceCallInstrumentation instrumentation)
public SocketServer.Builder withClientTimeout(int timeoutInMs)
public SocketServer.Builder withWorkerThreads(int numThreads)
public SocketServer.Builder withThreadFactory(ThreadFactory factory)
public SocketServer.Builder withSerializer(Serializer serializer)
public SocketServer start()
Copyright © 2015–2018 morimekta.net. All rights reserved.