public final class HttpResources extends TcpResources
DEFAULT_POOL_ACQUIRE_TIMEOUT, DEFAULT_POOL_MAX_CONNECTIONDEFAULT_IO_SELECT_COUNT, DEFAULT_IO_WORKER_COUNT| Modifier and Type | Method and Description |
|---|---|
static HttpResources |
get()
Return the global HTTP resources for event loops and pooling
|
static HttpResources |
reset()
Reset http resources to default and return its instance
|
static HttpResources |
set(LoopResources loops)
Update pooling resources and return the global HTTP resources
|
static HttpResources |
set(PoolResources pools)
Update event loops resources and return the global HTTP resources
|
static void |
shutdown()
Shutdown the global
HttpResources without resetting them,
effectively cleaning up associated resources without creating new ones. |
static reactor.core.publisher.Mono<java.lang.Void> |
shutdownLater()
Prepare to shutdown the global
TcpResources without resetting them,
effectively cleaning up associated resources without creating new ones. |
_dispose, _disposeLater, daemon, dispose, disposeLater, getOrCreate, isDisposed, onChannel, onClient, onDatagramChannel, onServer, onServerChannel, onServerSelect, preferNative, selectOrCreateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitelastic, fixed, fixed, fixedcolocate, create, create, createpublic static HttpResources get()
public static HttpResources set(PoolResources pools)
public static HttpResources set(LoopResources loops)
public static HttpResources reset()
public static void shutdown()
HttpResources without resetting them,
effectively cleaning up associated resources without creating new ones.public static reactor.core.publisher.Mono<java.lang.Void> shutdownLater()
TcpResources without resetting them,
effectively cleaning up associated resources without creating new ones. This only
occurs when the returned Mono is subscribed to.Mono triggering the shutdown() when subscribed to.