Interface DestructableComponent

All Superinterfaces:
Component
All Known Implementing Classes:
AbstractIdentifiableInitializableComponent, AbstractIdentifiedInitializableComponent, AbstractInitializableComponent, AbstractReloadableService, BasicAccessControlService, BasicKeystoreKeyStrategy, BasicParserPool, CookieManager, DataSealer, DelegatingAccessControlService, EvaluableScript, FileCachingHttpClientBuilder.StorageManagingHttpClient, IdleConnectionSweeper, IPRangeAccessControl, ScriptedKeyStrategy, ScriptedRunnable

public interface DestructableComponent
extends Component
A component which can be destroyed and its resources reclaimed.
  • Method Summary

    Modifier and Type Method Description
    void destroy()
    Destroys the component.
    boolean isDestroyed()
    Gets whether this component has been destroyed.
  • Method Details

    • isDestroyed

      boolean isDestroyed()
      Gets whether this component has been destroyed. Normally, once a component has been destroyed it cannot be used.
      Returns:
      true iff the component has been destroyed
    • destroy

      void destroy()
      Destroys the component.