| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.plugin.RegisteredListener
org.bukkit.plugin.TimedRegisteredListener
public class TimedRegisteredListener
Extends RegisteredListener to include timing information
| Constructor Summary | |
|---|---|
| TimedRegisteredListener(Listener pluginListener,
                        EventExecutor eventExecutor,
                        EventPriority eventPriority,
                        Plugin registeredPlugin,
                        boolean listenCancelled) | |
| Method Summary | |
|---|---|
|  void | callEvent(Event event)Calls the event executor | 
|  int | getCount()Gets the total times this listener has been called | 
|  Event | getEvent()Gets the first event this listener handled | 
|  long | getTotalTime()Gets the total time calls to this listener have taken | 
|  boolean | hasMultiple()Gets whether this listener has handled multiple events | 
|  void | reset()Resets the call count and total time for this listener | 
| Methods inherited from class org.bukkit.plugin.RegisteredListener | 
|---|
| getListener, getPlugin, getPriority, isIgnoringCancelled | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TimedRegisteredListener(Listener pluginListener,
                               EventExecutor eventExecutor,
                               EventPriority eventPriority,
                               Plugin registeredPlugin,
                               boolean listenCancelled)
| Method Detail | 
|---|
public void callEvent(Event event)
               throws EventException
RegisteredListener
callEvent in class RegisteredListenerevent - The event
EventException - If an event handler throws an exception.public void reset()
public int getCount()
public long getTotalTime()
public Event getEvent()
public boolean hasMultiple()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||