public class TimedRegisteredListener extends RegisteredListener
| Constructor | Description | 
|---|---|
| TimedRegisteredListener(@NotNull Listener pluginListener,
                       @NotNull EventExecutor eventExecutor,
                       @NotNull EventPriority eventPriority,
                       @NotNull Plugin registeredPlugin,
                       boolean listenCancelled) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | callEvent(@NotNull Event event) | Calls the event executor | 
| int | getCount() | Gets the total times this listener has been called | 
| @Nullable Class<? extends Event> | getEventClass() | Gets the class of the events 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, such that for
 some two events,  eventA.getClass() != eventB.getClass(). | 
| void | reset() | Resets the call count and total time for this listener | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetListener, getPlugin, getPriority, isIgnoringCancelledpublic TimedRegisteredListener(@NotNull
                               @NotNull Listener pluginListener,
                               @NotNull
                               @NotNull EventExecutor eventExecutor,
                               @NotNull
                               @NotNull EventPriority eventPriority,
                               @NotNull
                               @NotNull Plugin registeredPlugin,
                               boolean listenCancelled)
public void callEvent(@NotNull
                      @NotNull Event event)
               throws EventException
RegisteredListenercallEvent in class RegisteredListenerevent - The eventEventException - If an event handler throws an exception.public void reset()
public int getCount()
public long getTotalTime()
@Nullable public @Nullable Class<? extends Event> getEventClass()
this.getEventClass().isAssignableFrom(event.getClass())
 and no class this.getEventClass().isAssignableFrom(clazz)
 && this.getEventClass() != clazz &&
 event.getClass().isAssignableFrom(clazz) for all handled events.public boolean hasMultiple()
eventA.getClass() != eventB.getClass().Copyright © 2020. All rights reserved.