org.javasimon.callback
Interface CompositeCallback

All Superinterfaces:
Callback
All Known Implementing Classes:
CompositeCallbackImpl, CompositeFilterCallback

public interface CompositeCallback
extends Callback

Composite Callback can hold more callbacks which allows to form callback trees where events are passed to sub-callbacks. Events can be filtered using 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 Manager).

Since:
3.2
Author:
Richard "Virgo" Richter

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.javasimon.callback.Callback
Callback.Event
 
Method Summary
 void addCallback(Callback callback)
          Adds another callback as a child to this callback.
 List<Callback> callbacks()
          Returns the list of all child-callbacks.
 void removeAllCallbacks()
          Removes all callbacks from this callback.
 void removeCallback(Callback callback)
          Removes specified callback from this callback.
 
Methods inherited from interface org.javasimon.callback.Callback
cleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onManagerMessage, onManagerWarning, onSimonCreated, onSimonDestroyed, onSimonReset, onStopwatchAdd, onStopwatchAdd, onStopwatchStart, onStopwatchStop
 

Method Detail

callbacks

List<Callback> callbacks()
Returns the list of all child-callbacks.

Returns:
children list

addCallback

void addCallback(Callback callback)
Adds another callback as a child to this callback.

Parameters:
callback - added callback

removeCallback

void removeCallback(Callback callback)
Removes specified callback from this callback.

Parameters:
callback - removed child-callback

removeAllCallbacks

void removeAllCallbacks()
Removes all callbacks from this callback.



Copyright © 2013. All Rights Reserved.