Class NetworkEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.network.NetworkEvent
- Direct Known Subclasses:
ChannelMessageReceiveEvent,NetworkChannelCloseEvent,NetworkChannelInitEvent
Represents any event which is related to any network channel connected to the current network component.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNetworkEvent(@NonNull NetworkChannel channel) Creates a new instance of this network event. -
Method Summary
Modifier and TypeMethodDescriptionGet the channel which is associated with this event.
-
Field Details
-
channel
-
-
Constructor Details
-
NetworkEvent
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
Get the channel which is associated with this event.- Returns:
- the channel.
-