public abstract 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 | Description |
|---|---|---|
static void |
releaseSharedResources() |
Shutdown/stop any shared resources that may be in use.
|
static void |
releaseSharedResources(long timeout,
TimeUnit unit) |
Shutdown/stop any shared resources that me be in use, blocking until finished or interrupted.
|
static io.netty.channel.EventLoopGroup |
sharedEventLoop() |
|
static ExecutorService |
sharedExecutor() |
|
static io.netty.util.HashedWheelTimer |
sharedWheelTimer() |
public static ExecutorService sharedExecutor()
ExecutorService.public static io.netty.channel.EventLoopGroup sharedEventLoop()
EventLoopGroup.public static io.netty.util.HashedWheelTimer sharedWheelTimer()
HashedWheelTimer.public static void releaseSharedResources()
public static void releaseSharedResources(long timeout,
TimeUnit unit)
throws InterruptedException
timeout - the duration to wait.unit - the TimeUnit of the timeout duration.InterruptedExceptionCopyright © 2018. All rights reserved.