Class PubNubConfiguration
java.lang.Object
org.apache.camel.component.pubnub.PubNubConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
If Access Manager is utilized, client will use this authKey in all restricted requests.The channel used for subscribing/publishing eventsIf cipher is passed, all communications to/from PubNub will be encrypted.The publish key obtained from your PubNub account.The secret key used for message signing.The subscribe key obtained from your PubNub account.getUuid()
boolean
isSecure()
Use SSL for secure transmission.boolean
void
setAuthKey
(String authKey) void
setChannel
(String channel) void
setCipherKey
(String cipherKey) void
setOperation
(String operation) The operation to perform.void
setPublishKey
(String publishKey) void
setSecretKey
(String secretKey) void
setSecure
(boolean secure) void
setSubscribeKey
(String subscribeKey) void
UUID to be used as a device identifier, a default UUID is generated if not passed.void
setWithPresence
(boolean withPresence) Also subscribe to related presence information
-
Constructor Details
-
PubNubConfiguration
public PubNubConfiguration()
-
-
Method Details
-
copy
-
getPublishKey
The publish key obtained from your PubNub account. Required when publishing messages. -
setPublishKey
-
getSubscribeKey
The subscribe key obtained from your PubNub account. Required when subscribing to channels or listening for presence events -
setSubscribeKey
-
getSecretKey
The secret key used for message signing. -
setSecretKey
-
getAuthKey
If Access Manager is utilized, client will use this authKey in all restricted requests. -
setAuthKey
-
getCipherKey
If cipher is passed, all communications to/from PubNub will be encrypted. -
setCipherKey
-
isSecure
public boolean isSecure()Use SSL for secure transmission. -
setSecure
public void setSecure(boolean secure) -
getChannel
The channel used for subscribing/publishing events -
setChannel
-
setUuid
UUID to be used as a device identifier, a default UUID is generated if not passed. -
getUuid
-
setOperation
The operation to perform.- PUBLISH: Default. Send a message to all subscribers of a channel.
- FIRE: allows the client to send a message to BLOCKS Event Handlers. These messages will go directly to any Event Handlers registered on the channel.
- HERENOW: Obtain information about the current state of a channel including a list of unique user-ids currently subscribed to the channel and the total occupancy count.
- WHERENOW: Obtain information about the current list of channels to which a uuid is subscribed to.
- GETSTATE: Used to get key/value pairs specific to a subscriber uuid. State information is supplied as a JSON object of key/value pairs
- SETSTATE: Used to set key/value pairs specific to a subscriber uuid
- GETHISTORY: Fetches historical messages of a channel.
-
getOperation
-
setWithPresence
public void setWithPresence(boolean withPresence) Also subscribe to related presence information -
isWithPresence
public boolean isWithPresence()
-