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 RunnableconstructShutdown(SyncShutdownable resource) The constructed runnable must callAbstractShutdownableResource.signalShutdownInitiated()method to indicate that shutdown has started.static SyncShutdownableAdapterwrap(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:AbstractShutdownableResourceThe constructed runnable must callAbstractShutdownableResource.signalShutdownInitiated()method to indicate that shutdown has started.- Specified by:
constructShutdownin classAbstractShutdownableResource<SyncShutdownable>- Parameters:
resource- Object to be shutdown- Returns:
- Runnable instance
-