public class PubNub
extends java.lang.Object
| Constructor and Description |
|---|
PubNub(PNConfiguration initialConfig) |
| Modifier and Type | Method and Description |
|---|---|
AddChannelChannelGroup |
addChannelsToChannelGroup() |
void |
addListener(SubscribeCallback listener) |
AddChannelsToPush |
addPushNotificationsOnChannels() |
Audit |
audit() |
ListPushProvisions |
auditPushChannelProvisions() |
java.lang.String |
decrypt(java.lang.String inputString)
Perform Cryptographic decryption of an input string using cipher key provided by PNConfiguration
|
java.lang.String |
decrypt(java.lang.String inputString,
java.lang.String cipherKey)
Perform Cryptographic decryption of an input string using the cipher key
|
DeleteChannelGroup |
deleteChannelGroup() |
void |
destroy()
Destroy the SDK to evict the connection pools.
|
void |
disconnect()
Perform a disconnect from the listeners
|
java.lang.String |
encrypt(java.lang.String inputString)
Perform Cryptographic encryption of an input string and the cipher key provided by PNConfiguration
|
java.lang.String |
encrypt(java.lang.String inputString,
java.lang.String cipherKey)
Perform Cryptographic encryption of an input string and the cipher key.
|
FetchMessages |
fetchMessages() |
Publish |
fire() |
java.lang.String |
getBaseUrl() |
PNConfiguration |
getConfiguration() |
java.lang.String |
getInstanceId() |
MapperManager |
getMapper() |
GetState |
getPresenceState() |
java.lang.String |
getRequestId() |
java.util.List<java.lang.String> |
getSubscribedChannelGroups() |
java.util.List<java.lang.String> |
getSubscribedChannels() |
int |
getTimestamp() |
java.lang.String |
getVersion() |
Grant |
grant() |
HereNow |
hereNow() |
History |
history() |
ListAllChannelGroup |
listAllChannelGroups() |
AllChannelsChannelGroup |
listChannelsForChannelGroup() |
Publish |
publish() |
void |
reconnect()
Perform a Reconnect to the network
|
RemoveAllPushChannelsForDevice |
removeAllPushNotificationsFromDeviceWithPushToken() |
RemoveChannelChannelGroup |
removeChannelsFromChannelGroup() |
void |
removeListener(SubscribeCallback listener) |
RemoveChannelsFromPush |
removePushNotificationsFromChannels() |
SetState |
setPresenceState() |
void |
stop()
Deprecated.
|
SubscribeBuilder |
subscribe() |
Time |
time() |
UnsubscribeBuilder |
unsubscribe() |
void |
unsubscribeAll() |
WhereNow |
whereNow() |
public PubNub(PNConfiguration initialConfig)
public java.lang.String getBaseUrl()
public void addListener(SubscribeCallback listener)
public void removeListener(SubscribeCallback listener)
public SubscribeBuilder subscribe()
public UnsubscribeBuilder unsubscribe()
public AddChannelsToPush addPushNotificationsOnChannels()
public RemoveChannelsFromPush removePushNotificationsFromChannels()
public RemoveAllPushChannelsForDevice removeAllPushNotificationsFromDeviceWithPushToken()
public ListPushProvisions auditPushChannelProvisions()
public WhereNow whereNow()
public HereNow hereNow()
public Time time()
public History history()
public FetchMessages fetchMessages()
public Audit audit()
public Grant grant()
public GetState getPresenceState()
public SetState setPresenceState()
public Publish publish()
public ListAllChannelGroup listAllChannelGroups()
public AllChannelsChannelGroup listChannelsForChannelGroup()
public AddChannelChannelGroup addChannelsToChannelGroup()
public RemoveChannelChannelGroup removeChannelsFromChannelGroup()
public DeleteChannelGroup deleteChannelGroup()
public java.lang.String decrypt(java.lang.String inputString)
throws PubNubException
inputString - String to be encryptedPubNubExceptionpublic java.lang.String decrypt(java.lang.String inputString,
java.lang.String cipherKey)
throws PubNubException
inputString - String to be encryptedcipherKey - cipher key to be used for encryptionPubNubException - throws exception in case of failed encryptionpublic java.lang.String encrypt(java.lang.String inputString)
throws PubNubException
inputString - String to be encryptedPubNubExceptionpublic java.lang.String encrypt(java.lang.String inputString,
java.lang.String cipherKey)
throws PubNubException
inputString - String to be encryptedcipherKey - cipher key to be used for encryptionPubNubException - throws exception in case of failed encryptionpublic int getTimestamp()
public java.lang.String getInstanceId()
public java.lang.String getRequestId()
public java.lang.String getVersion()
@Deprecated public void stop()
public void destroy()
public void reconnect()
public void disconnect()
public Publish fire()
public java.util.List<java.lang.String> getSubscribedChannels()
public java.util.List<java.lang.String> getSubscribedChannelGroups()
public void unsubscribeAll()
@Generated(value="lombok") public PNConfiguration getConfiguration()
@Generated(value="lombok") public MapperManager getMapper()