| Constructor and Description |
|---|
HubClient(String publicId,
ProfileToken profileToken)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
CallableClient |
getCallable()
Returns the callable object which allows this client to receive
callbacks.
|
String |
getId()
Returns the public identifier for this client.
|
Metadata |
getMetadata()
Returns the currently declared metadata for this client, if any.
|
ProfileToken |
getProfileToken()
Returns a token identifying the source of this client's connection
to the hub.
|
Map |
getSubscription(String mtype)
Returns the subscription information for a given MType for this client.
|
Subscriptions |
getSubscriptions()
Returns the currently declared subscriptions for this client, if any.
|
boolean |
isCallable()
Indicates whether this client is callable.
|
boolean |
isSubscribed(String mtype)
Indicates whether this client is subscribed to a given MType.
|
void |
setCallable(CallableClient callable)
Sets the callable object which allows this client to receive
callbacks.
|
void |
setMetadata(Map meta)
Sets this client's metadata map.
|
void |
setSubscriptions(Map subs)
Sets this client's subscriptions list.
|
String |
toString() |
public HubClient(String publicId, ProfileToken profileToken)
publicId - client public IDprofileToken - identifier for the source of the hub connectionpublic String getId()
Clientpublic Metadata getMetadata()
ClientgetMetadata in interface Clientpublic Subscriptions getSubscriptions()
ClientgetSubscriptions in interface Clientpublic ProfileToken getProfileToken()
public void setMetadata(Map meta)
meta - metadata mappublic void setSubscriptions(Map subs)
subs - subscriptions mappublic boolean isSubscribed(String mtype)
mtype - MTypepublic Map getSubscription(String mtype)
mtype - MTypemtype,
or null if not subscribedpublic void setCallable(CallableClient callable)
callable - new callable interface, or nullpublic CallableClient getCallable()
public boolean isCallable()
Copyright © 2008–2024. All rights reserved.