Class VelocityMessagingBridge
java.lang.Object
dev.shamoo.runtime.platform.velocity.VelocityMessagingBridge
Velocity channel registration and lossless payload sender.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionVelocityMessagingBridge(com.velocitypowered.api.proxy.ProxyServer server, dev.shamoo.runtime.core.ResourceRegistry resources) -
Method Summary
Modifier and TypeMethodDescriptionregister(dev.shamoo.runtime.core.PluginId owner, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier) registerProxyEndpoint(dev.shamoo.runtime.core.PluginId owner, Object plugin, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, VelocityMessagingBridge.ProxyRequestHandler handler) Registers a backend-only request endpoint.booleansend(com.velocitypowered.api.proxy.messages.ChannelMessageSink sink, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, byte[] payload)
-
Constructor Details
-
VelocityMessagingBridge
public VelocityMessagingBridge(com.velocitypowered.api.proxy.ProxyServer server, dev.shamoo.runtime.core.ResourceRegistry resources)
-
-
Method Details
-
register
public AutoCloseable register(dev.shamoo.runtime.core.PluginId owner, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier) -
send
public boolean send(com.velocitypowered.api.proxy.messages.ChannelMessageSink sink, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, byte[] payload) -
registerProxyEndpoint
public AutoCloseable registerProxyEndpoint(dev.shamoo.runtime.core.PluginId owner, Object plugin, com.velocitypowered.api.proxy.messages.ChannelIdentifier identifier, VelocityMessagingBridge.ProxyRequestHandler handler) Registers a backend-only request endpoint. Unrelated, malformed, response, and untrusted-source messages retain Velocity's forwarding result; only an accepted Shamoo request is marked handled.
-