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