Class CloudServiceUpdateEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.driver.event.events.service.CloudServiceEvent
eu.cloudnetservice.driver.event.events.service.CloudServiceUpdateEvent
An event being fired when a service updates its information. Normally an update is triggered by one of:
- a specific call to the wrapper api by a plugin.
- a state change of the service, for example from running to deleted.
- a change happening on the service, for example a player join or leave.
This event contains the service info after the update of it. To save resources (and as there is no need internally for it) the old service info will not be available in this event and must rather be read from another cache (for example an own one).
- Since:
- 4.0
-
Field Summary
Fields inherited from class CloudServiceEvent
serviceInfo -
Constructor Summary
ConstructorsConstructorDescriptionCloudServiceUpdateEvent(@NonNull ServiceInfoSnapshot serviceInfo) Constructs a new cloud service update event. -
Method Summary
Methods inherited from class CloudServiceEvent
serviceInfo
-
Constructor Details
-
CloudServiceUpdateEvent
Constructs a new cloud service update event.- Parameters:
serviceInfo- the service info associated with this event.- Throws:
NullPointerException- if the given service info is null.
-