private static class ProcedureManager.LegacySubscription extends ProcedureManager.Subscription<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
private character |
method
The method to be invoked.
|
event, publisher, readOnly, signature, subscriber
Constructor and Description |
---|
LegacySubscription(java.lang.Object subscriber,
character event,
java.lang.Object publisher,
character method)
Build a new subscription with the specified data.
|
Modifier and Type | Method and Description |
---|---|
void |
publish(java.lang.Object publisher,
java.util.List<java.lang.String> errors,
java.lang.String modes,
java.lang.Object[] params)
Execute a PUBLISH request, in this context.
|
void |
publishRemote(java.lang.String modes,
java.lang.Object[] params)
Execute a PUBLISH request, by posting the event to the actual
context . |
private final character method
null
.public LegacySubscription(java.lang.Object subscriber, character event, java.lang.Object publisher, character method)
subscriber
- The subscriber procedure.event
- The event to subscribe.publisher
- The event's publisher. May be null
.method
- The method to be invoked. When null
, the event name will be used
as the method name.public void publishRemote(java.lang.String modes, java.lang.Object[] params)
context
.publishRemote
in class ProcedureManager.Subscription<java.lang.Object>
modes
- The parameter modes.params
- The PUBLISH parameters.public void publish(java.lang.Object publisher, java.util.List<java.lang.String> errors, java.lang.String modes, java.lang.Object[] params)
publish
in class ProcedureManager.Subscription<java.lang.Object>
publisher
- The publisher which posted the PUBLISH event.errors
- A list to collect any errors during PUBLISH.modes
- The parameter modes.params
- The PUBLISH parameters.