Package me.internalizable.numdrassl.api.messaging.channel
package me.internalizable.numdrassl.api.messaging.channel
Channel definitions and registry for cross-proxy messaging.
Contains:
MessageChannel- Channel interfaceChannels- Channel registry with predefined channelsSystemChannel- Enum of system channel typesBroadcastType- Types of broadcast messages
Usage
// Use predefined system channels
messaging.subscribe(Channels.CHAT, handler);
messaging.subscribe(Channels.HEARTBEAT, handler);
// Register custom channels
MessageChannel myChannel = Channels.register("myplugin", "events");
- See Also:
-
ClassDescriptionTypes of cluster-wide broadcast messages.Registry of message channels with predefined system channels and custom channel support.Represents a pub/sub channel for cross-proxy messaging.Predefined system channels for cross-proxy messaging.