Class NetworkEvent

java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.network.NetworkEvent
Direct Known Subclasses:
ChannelMessageReceiveEvent, NetworkChannelCloseEvent, NetworkChannelInitEvent

public abstract class NetworkEvent extends Event
Represents any event which is related to any network channel connected to the current network component.
Since:
4.0
  • Field Details

  • Constructor Details

    • NetworkEvent

      public NetworkEvent(@NonNull @NonNull NetworkChannel channel)
      Creates a new instance of this network event.
      Parameters:
      channel - the channel which is associated with this event.
      Throws:
      NullPointerException - if the given channel is null.
  • Method Details

    • networkChannel

      @NonNull public @NonNull NetworkChannel networkChannel()
      Get the channel which is associated with this event.
      Returns:
      the channel.