Class SingleActionListener


  • public class SingleActionListener
    extends com.google.common.util.concurrent.Service.Listener
    Will run the same runnable regardless of what listener callback is being called.
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleActionListener​(java.lang.Runnable runnable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void failed​(com.google.common.util.concurrent.Service.State from, java.lang.Throwable failure)  
      void running()  
      void starting()  
      void stopping​(com.google.common.util.concurrent.Service.State from)  
      void terminated​(com.google.common.util.concurrent.Service.State from)  
      • Methods inherited from class java.lang.Object

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

      • SingleActionListener

        public SingleActionListener​(java.lang.Runnable runnable)
    • Method Detail

      • starting

        public final void starting()
        Overrides:
        starting in class com.google.common.util.concurrent.Service.Listener
      • running

        public final void running()
        Overrides:
        running in class com.google.common.util.concurrent.Service.Listener
      • stopping

        public final void stopping​(@Nullable
                                   com.google.common.util.concurrent.Service.State from)
        Overrides:
        stopping in class com.google.common.util.concurrent.Service.Listener
      • terminated

        public final void terminated​(@Nullable
                                     com.google.common.util.concurrent.Service.State from)
        Overrides:
        terminated in class com.google.common.util.concurrent.Service.Listener
      • failed

        public final void failed​(@Nullable
                                 com.google.common.util.concurrent.Service.State from,
                                 @Nullable
                                 java.lang.Throwable failure)
        Overrides:
        failed in class com.google.common.util.concurrent.Service.Listener