Package net.md_5.bungee.api.event
Class AsyncEvent<T>
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.AsyncEvent<T>
- Type Parameters:
T- Type of this event
- Direct Known Subclasses:
ConnectionInitEvent,HAProxyConnectionInitEvent,LoginEvent,PreLoginEvent,ProxyPingEvent
Represents an event which depends on the result of asynchronous operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoidcompleteIntent(Plugin plugin) Notifies this event that this plugin has completed an intent and wishes to let the event proceed once all intents have been completed.booleaninthashCode()voidpostCall()Method called after this event has been dispatched to all handlers.voidregisterIntent(Plugin plugin) Register an intent that this plugin will continue to perform work on a background task, and wishes to let the event proceed once the registered background task has completed.toString()
-
Constructor Details
-
AsyncEvent
-
-
Method Details
-
postCall
public void postCall()Description copied from class:EventMethod called after this event has been dispatched to all handlers. -
registerIntent
Register an intent that this plugin will continue to perform work on a background task, and wishes to let the event proceed once the registered background task has completed. Multiple intents can be registered by a plugin, but the plugin must complete the same amount of intents for the event to proceed.- Parameters:
plugin- the plugin registering this intent
-
completeIntent
Notifies this event that this plugin has completed an intent and wishes to let the event proceed once all intents have been completed.- Parameters:
plugin- a plugin which has an intent registered for this event
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-