Class SyncShutdownableAdapter
java.lang.Object
com.linkedin.alpini.base.registry.AbstractShutdownableResource<SyncShutdownable>
com.linkedin.alpini.base.registry.SyncShutdownableAdapter
- All Implemented Interfaces:
ResourceRegistry.Sync
,Shutdownable
,ShutdownableResource
public class SyncShutdownableAdapter
extends AbstractShutdownableResource<SyncShutdownable>
implements ResourceRegistry.Sync
-
Method Summary
Modifier and TypeMethodDescriptionprotected Runnable
constructShutdown
(SyncShutdownable resource) The constructed runnable must callAbstractShutdownableResource.signalShutdownInitiated()
method to indicate that shutdown has started.static SyncShutdownableAdapter
wrap
(SyncShutdownable resource) Methods inherited from class com.linkedin.alpini.base.registry.AbstractShutdownableResource
isShutdown, isTerminated, shutdown, signalShutdownInitiated, toString, waitForShutdown, waitForShutdown
-
Method Details
-
wrap
-
constructShutdown
Description copied from class:AbstractShutdownableResource
The constructed runnable must callAbstractShutdownableResource.signalShutdownInitiated()
method to indicate that shutdown has started.- Specified by:
constructShutdown
in classAbstractShutdownableResource<SyncShutdownable>
- Parameters:
resource
- Object to be shutdown- Returns:
- Runnable instance
-