Class AbstractHandlerContainer

    • Constructor Detail

      • AbstractHandlerContainer

        public AbstractHandlerContainer()
    • Method Detail

      • getChildHandlersByClass

        public Handler[] getChildHandlersByClass​(java.lang.Class<?> byclass)
        Specified by:
        getChildHandlersByClass in interface HandlerContainer
        Parameters:
        byclass - the child handler class to get
        Returns:
        array of all handlers contained by this handler and it's children of the passed type.
      • getChildHandlerByClass

        public <T extends Handler> T getChildHandlerByClass​(java.lang.Class<T> byclass)
        Specified by:
        getChildHandlerByClass in interface HandlerContainer
        Type Parameters:
        T - the type of handler
        Parameters:
        byclass - the child handler class to get
        Returns:
        first handler of all handlers contained by this handler and it's children of the passed type.
      • expandChildren

        protected void expandChildren​(java.util.List<Handler> list,
                                      java.lang.Class<?> byClass)
      • expandHandler

        protected void expandHandler​(Handler handler,
                                     java.util.List<Handler> list,
                                     java.lang.Class<?> byClass)
      • doShutdown

        protected void doShutdown​(java.util.List<java.util.concurrent.Future<java.lang.Void>> futures)
                           throws MultiException
        Shutdown nested Gracefule handlers
        Parameters:
        futures - A list of Futures which must also be waited on for the shutdown (or null) returns A MultiException to which any failures are added or null
        Throws:
        MultiException