public final class Modbus extends Object
These resources should be released when the JVM is shutting down or the ClassLoader that loaded us is unloaded.
See releaseSharedResources().
| Modifier and Type | Method and Description |
|---|---|
static void |
releaseSharedResources()
Release shared resources, waiting at most 5 seconds for the
NioEventLoopGroup to shutdown gracefully. |
static void |
releaseSharedResources(long timeout,
TimeUnit unit)
Release shared resources, waiting at most the specified timeout for the
NioEventLoopGroup to shutdown
gracefully. |
static io.netty.channel.nio.NioEventLoopGroup |
sharedEventLoop() |
static ExecutorService |
sharedExecutor() |
static ScheduledExecutorService |
sharedScheduledExecutor() |
static io.netty.util.HashedWheelTimer |
sharedWheelTimer() |
public static io.netty.channel.nio.NioEventLoopGroup sharedEventLoop()
NioEventLoopGroup.public static ExecutorService sharedExecutor()
ExecutorService.public static ScheduledExecutorService sharedScheduledExecutor()
ScheduledExecutorService.public static io.netty.util.HashedWheelTimer sharedWheelTimer()
HashedWheelTimer.public static void releaseSharedResources()
NioEventLoopGroup to shutdown gracefully.public static void releaseSharedResources(long timeout,
TimeUnit unit)
NioEventLoopGroup to shutdown
gracefully.timeout - the duration of the timeout.unit - the unit of the timeout duration.Copyright © 2020. All rights reserved.