Package xyz.ressor

Class ActionsManager


  • public class ActionsManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionsManager​(ServiceManager serviceManager, java.util.concurrent.ExecutorService threadPool)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onReload​(java.lang.Object service, ReloadAction action)
      Performs the given action when the service reload is triggered, but not yet performed.
      void resetAll​(java.lang.Object service)
      Resets all the actions previously registered on the service.
      • Methods inherited from class java.lang.Object

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

      • ActionsManager

        public ActionsManager​(ServiceManager serviceManager,
                              java.util.concurrent.ExecutorService threadPool)
    • Method Detail

      • onReload

        public void onReload​(java.lang.Object service,
                             ReloadAction action)
        Performs the given action when the service reload is triggered, but not yet performed.

        For the standard provided actions please see Actions class.

        Parameters:
        service - service which is going to be reloaded
        action - action which decides whether reload would happen or not
      • resetAll

        public void resetAll​(java.lang.Object service)
        Resets all the actions previously registered on the service.