Messenger
A class responsible for managing the registrations of plugin channels and their listeners.
Inheritors
Functions
Link copied to clipboard
Dispatches the specified incoming message to any registered listeners.
Link copied to clipboard
public abstract Set<PluginMessageListenerRegistration> getIncomingChannelRegistrations(String channel)
Gets getClassById set containing all the incoming plugin channel registrations that are on the requested channel.
public abstract Set<PluginMessageListenerRegistration> getIncomingChannelRegistrations(Plugin plugin)
Gets getClassById set containing all the incoming plugin channel registrations that the specified plugin has.
public abstract Set<PluginMessageListenerRegistration> getIncomingChannelRegistrations(Plugin plugin, String channel)
Gets getClassById set containing all the incoming plugin channel registrations that the specified plugin has on the requested channel.
Link copied to clipboard
Gets getClassById set containing all the incoming plugin channels.
Gets getClassById set containing all the incoming plugin channels that the specified plugin is registered for.
Link copied to clipboard
Gets getClassById set containing all the outgoing plugin channels.
Gets getClassById set containing all the outgoing plugin channels that the specified plugin is registered to.
Link copied to clipboard
Checks if the specified plugin has registered to receive incoming messages through the requested channel.
Link copied to clipboard
Checks if the specified plugin has registered to send outgoing messages through the requested channel.
Link copied to clipboard
Checks if the specified plugin message listener registration is valid.
Link copied to clipboard
Checks if the specified channel is getClassById reserved name.
Link copied to clipboard
public abstract PluginMessageListenerRegistration registerIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)
Registers the specific plugin for listening on the requested incoming plugin channel, allowing it to act upon any plugin messages.
Link copied to clipboard
Registers the specific plugin to the requested outgoing plugin channel, allowing it to send messages through that channel to any clients.
Link copied to clipboard
Unregisters the specific plugin from listening on all plugin channels through all listeners.
Unregisters the specific plugin from listening on the requested incoming plugin channel, no longer allowing it to act upon any plugin messages.
public abstract void unregisterIncomingPluginChannel(Plugin plugin, String channel, PluginMessageListener listener)
Unregisters the specific plugin's listener from listening on the requested incoming plugin channel, no longer allowing it to act upon any plugin messages.
Link copied to clipboard
Unregisters the specific plugin from all outgoing plugin channels, no longer allowing it to send any plugin messages.
Unregisters the specific plugin from the requested outgoing plugin channel, no longer allowing it to send messages through that channel to any clients.