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(@Nullable Integer broadcasterCacheCapacity) build()concurrentConnectionLimit(@Nullable Integer concurrentConnectionLimit) connectionQueueCapacity(@Nullable Integer connectionQueueCapacity) heartbeatInterval(@Nullable Duration heartbeatInterval) idGenerator(@Nullable IdGenerator<?> idGenerator) maximumRequestSizeInBytes(@Nullable Integer maximumRequestSizeInBytes) requestHandlerConcurrency(@Nullable Integer requestHandlerConcurrency) requestHandlerExecutorServiceSupplier(@Nullable Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) requestHandlerQueueCapacity(@Nullable Integer requestHandlerQueueCapacity) requestHandlerTimeout(@Nullable Duration requestHandlerTimeout) requestReadBufferSizeInBytes(@Nullable Integer requestReadBufferSizeInBytes) requestTimeout(@Nullable Duration requestTimeout) resourcePathCacheCapacity(@Nullable Integer resourcePathCacheCapacity) shutdownTimeout(@Nullable Duration shutdownTimeout) verifyConnectionOnceEstablished(@Nullable Boolean verifyConnectionOnceEstablished) writeTimeout(@Nullable Duration writeTimeout)
-
Method Details
-
port
-
host
-
requestTimeout
-
requestHandlerTimeout
public @NonNull ServerSentEventServer.Builder requestHandlerTimeout(@Nullable Duration requestHandlerTimeout) -
requestHandlerConcurrency
public @NonNull ServerSentEventServer.Builder requestHandlerConcurrency(@Nullable Integer requestHandlerConcurrency) -
requestHandlerQueueCapacity
public @NonNull ServerSentEventServer.Builder requestHandlerQueueCapacity(@Nullable Integer requestHandlerQueueCapacity) -
writeTimeout
-
shutdownTimeout
-
heartbeatInterval
public @NonNull ServerSentEventServer.Builder heartbeatInterval(@Nullable Duration heartbeatInterval) -
maximumRequestSizeInBytes
public @NonNull ServerSentEventServer.Builder maximumRequestSizeInBytes(@Nullable Integer maximumRequestSizeInBytes) -
requestReadBufferSizeInBytes
public @NonNull ServerSentEventServer.Builder requestReadBufferSizeInBytes(@Nullable Integer requestReadBufferSizeInBytes) -
requestHandlerExecutorServiceSupplier
public @NonNull ServerSentEventServer.Builder requestHandlerExecutorServiceSupplier(@Nullable Supplier<ExecutorService> requestHandlerExecutorServiceSupplier) -
concurrentConnectionLimit
public @NonNull ServerSentEventServer.Builder concurrentConnectionLimit(@Nullable Integer concurrentConnectionLimit) -
broadcasterCacheCapacity
public @NonNull ServerSentEventServer.Builder broadcasterCacheCapacity(@Nullable Integer broadcasterCacheCapacity) -
resourcePathCacheCapacity
public @NonNull ServerSentEventServer.Builder resourcePathCacheCapacity(@Nullable Integer resourcePathCacheCapacity) -
connectionQueueCapacity
public @NonNull ServerSentEventServer.Builder connectionQueueCapacity(@Nullable Integer connectionQueueCapacity) -
verifyConnectionOnceEstablished
public @NonNull ServerSentEventServer.Builder verifyConnectionOnceEstablished(@Nullable Boolean verifyConnectionOnceEstablished) -
idGenerator
-
build
-