Class DefaultRepositorySystemLifecycle

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.CopyOnWriteArrayList<java.lang.Runnable> onSystemEndedHandlers  
      private java.util.concurrent.atomic.AtomicBoolean shutdown  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addOnSystemEndedHandler​(java.lang.Runnable handler)
      Registers an "on repository system end" handler.
      private void requireNotShutdown()  
      void systemEnded()
      Marks the repository system as ended (shut down): all "on close" handlers will be invoked.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • shutdown

        private final java.util.concurrent.atomic.AtomicBoolean shutdown
      • onSystemEndedHandlers

        private final java.util.concurrent.CopyOnWriteArrayList<java.lang.Runnable> onSystemEndedHandlers
    • Constructor Detail

      • DefaultRepositorySystemLifecycle

        @Inject
        public DefaultRepositorySystemLifecycle()
    • Method Detail

      • systemEnded

        public void systemEnded()
        Description copied from interface: RepositorySystemLifecycle
        Marks the repository system as ended (shut down): all "on close" handlers will be invoked. This method may be invoked multiple times, only once will execute, subsequent calls will be no-op.
        Specified by:
        systemEnded in interface RepositorySystemLifecycle
      • requireNotShutdown

        private void requireNotShutdown()