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 Detail
-
shutdown
public rx.Observable<Boolean> shutdown()
- Specified by:
shutdown
in interfaceShutdownHook
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdown
in interfaceShutdownHook
-
-