public final class ClientBootstrap extends CrtResource implements Closeable
Constructor and Description |
---|
ClientBootstrap(EventLoopGroup elg,
HostResolver hr)
Creates a new ClientBootstrap.
|
ClientBootstrap(int numThreads)
Creates a new ClientBootstrap.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
acquire, getAllocatedNativeResourceCount, getAllocatedNativeResources, native_ptr, release
public ClientBootstrap(int numThreads) throws CrtRuntimeException
numThreads
- The number of Threads to use in the EventLoopCrtRuntimeException
- If the system is unable to allocate space for a native client bootstrap objectpublic ClientBootstrap(EventLoopGroup elg, HostResolver hr) throws CrtRuntimeException
hr
- A HostResolver instance, most applications only ever have oneelg
- An EventLoopGroup instance, most applications only ever have oneCrtRuntimeException
- If the provided EventLoopGroup is null or invalid,
or if the system is unable to allocate space for a native client bootstrap objectpublic void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2019. All rights reserved.