Class EndpointEvent
java.lang.Object
com.jme3.network.kernel.EndpointEvent
Provides information about an added or
removed connection.
- Author:
- Paul Speed
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the supported endpoint event types. -
Constructor Summary
ConstructorsConstructorDescriptionEndpointEvent(Kernel source, Endpoint p, EndpointEvent.Type type) Creates an endpoint event. -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointEventCreates an endpoint-added event.static EndpointEventcreateRemove(Kernel source, Endpoint p) Creates an endpoint-removed event.Returns the endpoint involved in the event.Returns the kernel that produced the event.getType()Returns the event type.toString()
-
Constructor Details
-
EndpointEvent
Creates an endpoint event.- Parameters:
source- the kernel that produced the eventp- the endpoint involved in the eventtype- the event type
-
-
Method Details
-
createAdd
Creates an endpoint-added event.- Parameters:
source- the kernel that produced the eventp- the added endpoint- Returns:
- the created event
-
createRemove
Creates an endpoint-removed event.- Parameters:
source- the kernel that produced the eventp- the removed endpoint- Returns:
- the created event
-
getSource
-
getEndpoint
Returns the endpoint involved in the event.- Returns:
- the event endpoint
-
getType
-
toString
-