private abstract static class ProcedureManager.Subscription<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected character |
event
The subscribed event.
|
protected java.lang.Object |
publisher
The publisher to match.
|
protected boolean |
readOnly
Flag indicating that this subscription can't be removed.
|
private Session |
session
The client session which registered this subscription.
|
protected T |
subscriber
The subscriber.
|
Constructor and Description |
---|
Subscription(T subscriber,
character event,
java.lang.Object publisher)
Build a new subscription with the specified data.
|
Modifier and Type | Method and Description |
---|---|
abstract 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.
|
abstract void |
publishRemote(java.lang.String modes,
java.lang.Object[] params)
Execute a PUBLISH request, by posting the event to the actual
context . |
private final Session session
protected final T subscriber
protected final character event
protected final java.lang.Object publisher
null
represents any source.protected boolean readOnly
public abstract void publishRemote(java.lang.String modes, java.lang.Object[] params)
context
.modes
- The parameter modes.params
- The PUBLISH parameters.public abstract void publish(java.lang.Object publisher, java.util.List<java.lang.String> errors, java.lang.String modes, java.lang.Object[] params)
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.