public final class EventLoopGroup extends CrtResource
Constructor and Description |
---|
EventLoopGroup(int numThreads)
Creates a new event loop group for the I/O subsystem to use to run blocking I/O requests
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Stops the event loop group's tasks and frees all resources associated with the the group.
|
acquire, getAllocatedNativeResourceCount, getAllocatedNativeResources, isNull, native_ptr, own, release
public EventLoopGroup(int numThreads) throws CrtRuntimeException
numThreads
- The number of threads that the event loop group may run tasks across. Usually 1.CrtRuntimeException
- If the system is unable to allocate space for a native event loop grouppublic void close()
close
in interface AutoCloseable
close
in class CrtResource
Copyright © 2019. All rights reserved.