Class NettyShutdownHook
java.lang.Object
com.couchbase.client.core.env.resources.NettyShutdownHook
- All Implemented Interfaces:
ShutdownHook
public class NettyShutdownHook extends Object implements ShutdownHook
ShutdownHook
hook that attempts to terminate Netty threads gracefully.
It won't report a failure if said threads cannot be terminated right away though.- Since:
- 2.2
- Author:
- Simon Baslé
-
Constructor Summary
Constructors Constructor Description NettyShutdownHook()
-
Method Summary
Modifier and Type Method Description boolean
isShutdown()
rx.Observable<Boolean>
shutdown()
-
Constructor Details
-
NettyShutdownHook
public NettyShutdownHook()
-
-
Method Details
-
shutdown
- Specified by:
shutdown
in interfaceShutdownHook
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfaceShutdownHook
-