Clover coverage report -
Coverage timestamp: Thu Jul 5 2007 20:02:32 EDT
file stats: LOC: 34   Methods: 0
NCLOC: 14   Classes: 2
 
 Source file Conditionals Statements Methods TOTAL
Event.java - - - -
coverage
 1    package org.jboss.cache.notifications.event;
 2   
 3    import org.jboss.cache.Cache;
 4   
 5    /**
 6    * An interface that defines common characteristics of events
 7    *
 8    * @author <a href="mailto:manik@jboss.org">Manik Surtani</a>
 9    * @since 2.0.0
 10    */
 11    public interface Event
 12    {
 13    public enum Type
 14    {
 15    CACHE_STARTED, CACHE_STOPPED, CACHE_BLOCKED, CACHE_UNBLOCKED, NODE_ACTIVATED, NODE_PASSIVATED,
 16    NODE_LOADED, NODE_EVICTED, NODE_CREATED, NODE_REMOVED, NODE_MODIFIED, NODE_MOVED, NODE_VISITED,
 17    TRANSACTION_COMPLETED, TRANSACTION_REGISTERED, VIEW_CHANGED
 18    }
 19   
 20    /**
 21    * @return the type of event represented by this instance.
 22    */
 23    Type getType();
 24   
 25    /**
 26    * @return true if the notification is before the event has occured, false if after the event has occured.
 27    */
 28    boolean isPre();
 29   
 30    /**
 31    * @return a handle to the cache instance that generated this notification.
 32    */
 33    Cache getCache();
 34    }