Class Event

java.lang.Object
com.barden.library.event.Event
Direct Known Subclasses:
EventCancellable, RedisMessageEvent

public abstract class Event extends Object
Event class.
  • Field Details

    • name

      protected final String name
  • Constructor Details

    • Event

      public Event()
      Creates event object.
    • Event

      public Event(boolean async)
      Creates event object. If event is asynchronous, common event methods will not synchronize with each other.
      Parameters:
      async - Async or not.
  • Method Details

    • getName

      @Nonnull public final String getName()
      Gets name.
      Returns:
      Event name.
    • isAsynchronous

      public final boolean isAsynchronous()
      Gets if event is asynchronous or not.
      Returns:
      If event is asynchronous or not.