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 TypeMethodDescriptionbroadcasterCacheCapacity(Integer broadcasterCacheCapacity) build()concurrentConnectionLimit(Integer concurrentConnectionLimit) connectionQueueCapacity(Integer connectionQueueCapacity) heartbeatInterval(Duration heartbeatInterval) idGenerator(IdGenerator<?> idGenerator) maximumRequestSizeInBytes(Integer maximumRequestSizeInBytes) requestHandlerExecutorServiceSupplier(Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) requestReadBufferSizeInBytes(Integer requestReadBufferSizeInBytes) requestTimeout(Duration requestTimeout) resourcePathCacheCapacity(Integer resourcePathCacheCapacity) shutdownTimeout(Duration shutdownTimeout) verifyConnectionOnceEstablished(Boolean verifyConnectionOnceEstablished)
-
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) -
requestHandlerExecutorServiceSupplier
@Nonnull public ServerSentEventServer.Builder requestHandlerExecutorServiceSupplier(@Nullable Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) -
concurrentConnectionLimit
@Nonnull public ServerSentEventServer.Builder concurrentConnectionLimit(@Nullable Integer concurrentConnectionLimit) -
broadcasterCacheCapacity
@Nonnull public ServerSentEventServer.Builder broadcasterCacheCapacity(@Nullable Integer broadcasterCacheCapacity) -
resourcePathCacheCapacity
@Nonnull public ServerSentEventServer.Builder resourcePathCacheCapacity(@Nullable Integer resourcePathCacheCapacity) -
connectionQueueCapacity
@Nonnull public ServerSentEventServer.Builder connectionQueueCapacity(@Nullable Integer connectionQueueCapacity) -
verifyConnectionOnceEstablished
@Nonnull public ServerSentEventServer.Builder verifyConnectionOnceEstablished(@Nullable Boolean verifyConnectionOnceEstablished) -
idGenerator
-
build
-