private static class FacadeHubService.FacadeHubConnection extends WrapperHubConnection
Modifier and Type | Field and Description |
---|---|
private CallableClient |
callable_ |
private Subscriptions |
subs_ |
Constructor and Description |
---|
FacadeHubConnection(HubConnection base)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
declareSubscriptions(java.util.Map subs)
Declares this registered client's MType subscriptions.
|
(package private) void |
hubEvent(Message msg)
Sends a given message as a notification, as if from the hub,
to this connection if it is able to receive it.
|
void |
setCallable(CallableClient callable)
Tells the hub how it can perform callbacks on the client by providing
a CallableClient object.
|
call, callAll, callAndWait, declareMetadata, getMetadata, getRegInfo, getRegisteredClients, getSubscribedClients, getSubscriptions, notify, notifyAll, ping, reply, unregister
private CallableClient callable_
private Subscriptions subs_
FacadeHubConnection(HubConnection base)
base
- base connectionpublic void setCallable(CallableClient callable) throws SampException
HubConnection
setCallable
in interface HubConnection
setCallable
in class WrapperHubConnection
callable
- callable clientSampException
public void declareSubscriptions(java.util.Map subs) throws SampException
HubConnection
Only permitted if this client is already callable.
declareSubscriptions
in interface HubConnection
declareSubscriptions
in class WrapperHubConnection
subs
- Subscriptions
-like mapSampException
void hubEvent(Message msg)
msg
- message to send