Class SyncResourceRegistry

java.lang.Object
com.linkedin.alpini.base.registry.ResourceRegistry
com.linkedin.alpini.base.registry.SyncResourceRegistry
All Implemented Interfaces:
ResourceRegistry.Sync, Shutdownable, ShutdownableResource

public class SyncResourceRegistry extends ResourceRegistry implements ResourceRegistry.Sync, ShutdownableResource
  • Constructor Details

    • SyncResourceRegistry

      public SyncResourceRegistry()
      Construct a ResourceRegistry class instance. When instances of these ResourceRegistry are garbage collected when not shut down, they will automatically behave as-if ResourceRegistry.shutdown() was invoked and a warning is emitted to the logs.
    • SyncResourceRegistry

      public SyncResourceRegistry(boolean garbageCollectable)
      Construct a ResourceRegistry class instance. Instances constructed with this constructor will not emit any log when it is garbage collected.
      Parameters:
      garbageCollectable - If true, the ResourceRegistry will be shut down when no remaining references to the ResourceRegistry remain referenced.