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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.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 Detail
-
wrap
public static SyncShutdownableAdapter wrap(SyncShutdownable resource)
-
constructShutdown
protected java.lang.Runnable constructShutdown(SyncShutdownable resource)
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
-
-