Class VelocityEventBridge
java.lang.Object
dev.shamoo.runtime.platform.velocity.VelocityEventBridge
Velocity event adapter that resumes the native continuation after asynchronous dispatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classStable handler registered once and replaceable without changing Velocity listener order. -
Constructor Summary
ConstructorsConstructorDescriptionVelocityEventBridge(com.velocitypowered.api.proxy.ProxyServer server, Object plugin, dev.shamoo.runtime.core.ResourceRegistry resources) -
Method Summary
Modifier and TypeMethodDescriptionsubscribe(dev.shamoo.runtime.core.PluginId owner, GeneratedVelocityEventRegistry registry, String generatedType, short order, VelocityEventBridge.AsyncEventDispatcher<Object> dispatcher) subscribe(dev.shamoo.runtime.core.PluginId owner, Class<E> eventType, short order, VelocityEventBridge.AsyncEventDispatcher<E> dispatcher)
-
Constructor Details
-
VelocityEventBridge
public VelocityEventBridge(com.velocitypowered.api.proxy.ProxyServer server, Object plugin, dev.shamoo.runtime.core.ResourceRegistry resources)
-
-
Method Details
-
subscribe
public <E> VelocityEventBridge.Subscription<E> subscribe(dev.shamoo.runtime.core.PluginId owner, Class<E> eventType, short order, VelocityEventBridge.AsyncEventDispatcher<E> dispatcher) -
subscribe
public VelocityEventBridge.Subscription<?> subscribe(dev.shamoo.runtime.core.PluginId owner, GeneratedVelocityEventRegistry registry, String generatedType, short order, VelocityEventBridge.AsyncEventDispatcher<Object> dispatcher)
-