public abstract class ISCMessageDispatcher
| Modifier and Type | Method and Description |
|---|---|
static ISCMessageDispatcher |
instance()
returns a concrete ISCMessageDispatcher class capable of delivering
responses within the JVM
|
static ISCMessageDispatcher |
instance(RequestContext context)
returns a concrete ISCMessageDispatcher class capable of delivering
responses to web browsers
|
boolean |
isSubscribed(ISubscriber s,
java.lang.String channel)
check to see if a given subscriber is subscribed to a given channel
|
void |
register(ISubscriber s)
register this subscriber
|
void |
send(ISCMessage msg)
send a message
|
void |
subscribe(ISubscriber s,
java.lang.String channel)
subscribe a given subscriber to a given channel
|
void |
unregister(ISubscriber s)
unregister this subscriber
|
void |
unsubscribe(ISubscriber s,
java.lang.String channel)
unsubscribe a given subscriber from a given channel
|
public static ISCMessageDispatcher instance(RequestContext context) throws java.lang.Exception
context - java.lang.Exceptionpublic static ISCMessageDispatcher instance() throws java.lang.Exception
java.lang.Exceptionpublic void register(ISubscriber s) throws java.lang.Exception
s - java.lang.Exceptionpublic void unregister(ISubscriber s) throws java.lang.Exception
s - java.lang.Exceptionpublic void subscribe(ISubscriber s, java.lang.String channel) throws java.lang.Exception
s - channel - java.lang.Exceptionpublic void unsubscribe(ISubscriber s, java.lang.String channel) throws java.lang.Exception
s - channel - java.lang.Exceptionpublic void send(ISCMessage msg) throws java.lang.Exception
msg - java.lang.Exceptionpublic boolean isSubscribed(ISubscriber s, java.lang.String channel) throws java.lang.Exception
s - channel - java.lang.Exception