1 /* 2 * Copyright (C) The Apache Software Foundation. All rights reserved. 3 * 4 * This software is published under the terms of the Apache Software License 5 * version 1.1, a copy of which has been included with this distribution in 6 * the LICENSE.txt file. 7 */ 8 package org.apache.avalon.excalibur.event; 9 10 import org.apache.avalon.framework.activity.Executable; 11 import org.apache.avalon.excalibur.event.Signal; 12 13 /** 14 * An EventHandler takes care of processing specific events in an Event Based 15 * architecture. 16 * 17 * @author <a HREF="mailto:bloritsch@apache.org">Berin Loritsch</a> 18 */ 19 public interface EventHandler 20 { 21 /** 22 * Handle one event at a time. 23 */ 24 void handleEvent( QueueElement element ); 25 26 /** 27 * Handle a whole array of events at a time. 28 */ 29 void handleEvents( QueueElement[] elements ); 30 }