Class ScheduledMethodRunnable

    • Constructor Detail

      • ScheduledMethodRunnable

        public ScheduledMethodRunnable​(Object target,
                                       Method method)
        Create a ScheduledMethodRunnable for the given target instance, calling the specified method.
        Parameters:
        target - the target instance to call the method on
        method - the target method to call
      • ScheduledMethodRunnable

        public ScheduledMethodRunnable​(Object target,
                                       String methodName)
                                throws NoSuchMethodException
        Create a ScheduledMethodRunnable for the given target instance, calling the specified method by name.
        Parameters:
        target - the target instance to call the method on
        methodName - the name of the target method
        Throws:
        NoSuchMethodException - if the specified method does not exist