Class NetworkChannelCloseEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.network.NetworkEvent
eu.cloudnetservice.driver.event.events.network.NetworkChannelCloseEvent
An event being fired when a channel connected to either a client or server gets closed.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNetworkChannelCloseEvent(@NonNull NetworkChannel channel, @NonNull ChannelType channelType) Creates a new instance of this network event. -
Method Summary
Modifier and TypeMethodDescriptionGet the type of channel which got closed.Methods inherited from class eu.cloudnetservice.driver.event.events.network.NetworkEvent
networkChannel
-
Field Details
-
channelType
-
-
Constructor Details
-
NetworkChannelCloseEvent
public NetworkChannelCloseEvent(@NonNull @NonNull NetworkChannel channel, @NonNull @NonNull ChannelType channelType) Creates a new instance of this network event.- Parameters:
channel- the channel which is associated with this event.channelType- the type of channel being closed.- Throws:
NullPointerException- if the given channel or type is null.
-
-
Method Details
-
channelType
Get the type of channel which got closed.- Returns:
- the type of channel which got closed.
-