Class ServerSentEventServer.Builder
java.lang.Object
com.soklet.ServerSentEventServer.Builder
- Enclosing interface:
ServerSentEventServer
Builder used to construct a standard implementation of
ServerSentEventServer
.
This class is intended for use by a single thread.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
concurrentConnectionLimit
(Integer concurrentConnectionLimit) heartbeatInterval
(Duration heartbeatInterval) maximumRequestSizeInBytes
(Integer maximumRequestSizeInBytes) requestHandlerExecutorServiceSupplier
(Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) requestReadBufferSizeInBytes
(Integer requestReadBufferSizeInBytes) requestTimeout
(Duration requestTimeout) shutdownTimeout
(Duration shutdownTimeout)
-
Method Details
-
port
-
host
-
requestTimeout
-
shutdownTimeout
-
heartbeatInterval
@Nonnull public ServerSentEventServer.Builder heartbeatInterval(@Nullable Duration heartbeatInterval) -
maximumRequestSizeInBytes
@Nonnull public ServerSentEventServer.Builder maximumRequestSizeInBytes(@Nullable Integer maximumRequestSizeInBytes) -
requestReadBufferSizeInBytes
@Nonnull public ServerSentEventServer.Builder requestReadBufferSizeInBytes(@Nullable Integer requestReadBufferSizeInBytes) -
concurrentConnectionLimit
@Nonnull public ServerSentEventServer.Builder concurrentConnectionLimit(@Nullable Integer concurrentConnectionLimit) -
requestHandlerExecutorServiceSupplier
@Nonnull public ServerSentEventServer.Builder requestHandlerExecutorServiceSupplier(@Nullable Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) -
build
-