All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javasimon.callback.CompositeCallback Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package org.javasimon.callback;

import java.util.List;

/**
 * Composite {@link Callback} can hold more callbacks which allows to form callback trees where events are passed to
 * sub-callbacks. Events can be filtered using {@link FilterCallback} which may be set up to pass only specific
 * events under certain circumstances.
 * This can be configured via Manager configuration facility. (Configuration part is still rather WIP.)
 * 

* Callback tree has no correlation with Simon tree in the {@link org.javasimon.Manager}). * * @author Richard "Virgo" Richter * @since 3.2 */ public interface CompositeCallback extends Callback { /** * Returns the list of all child-callbacks. * * @return children list */ List callbacks(); /** * Adds another callback as a child to this callback. * * @param callback added callback */ void addCallback(Callback callback); /** * Removes specified callback from this callback. * * @param callback removed child-callback */ void removeCallback(Callback callback); /** Removes all callbacks from this callback. */ void removeAllCallbacks(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy