| java.lang.Object | |
| ↳ | org.mule.module.pubnub.PubNubModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
PubNub is an Internet-Wide Messaging Service for Real-time Web and Mobile apps and games. PubNub is a massively scalable Real-time Bidirectional Messaging Service in the Cloud.
This connector supports version 3 of the PubNub REST API. PubNub is a freemium service where users get 5,000 messages per day for free but then have reasonable pricing plans for higher volume usage. For more information go to PubNub: http://pubnub.com| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | MESSAGE_LIMIT | ||||||||||
| String | ORIGIN | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| httpClient | |||||||||||
| logger | |||||||||||
| mapper | |||||||||||
| originUrl | |||||||||||
| publishKey | Your publish key that allows you to send data to the PubNub cloud | ||||||||||
| secretKey | The secret key given to you when you created the account | ||||||||||
| ssl | Whether to use SSL or not when communicating with the PubNub cloud | ||||||||||
| subscribeKey | Your subscribe key that allows you to send data to the PubNub cloud | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new PubNub connector with no state.
| |||||||||||
Creates a new PubHub connector with required state.
| |||||||||||
Creates a new PubHub connector with required state.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Json Object message.
| |||||||||||
Load history from a channel.
| |||||||||||
Send a json message to a channel.
| |||||||||||
Send a json message to a channel.
| |||||||||||
Makes a blocking request to receive a message on a channel.
| |||||||||||
Get the Timestamp from PubNub Cloud.
| |||||||||||
Listen for a message on a channel.
| |||||||||||
Register a message listener for a channel.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Your publish key that allows you to send data to the PubNub cloud
The secret key given to you when you created the account
Whether to use SSL or not when communicating with the PubNub cloud
Your subscribe key that allows you to send data to the PubNub cloud
Creates a new PubNub connector with no state. If this constructor is used, then you must also call #config(String, String, String, boolean)
Creates a new PubHub connector with required state. The keys required to create the connector are available from your account on the PubNub website: http://www.pubnub.com/account. SSL can be used by setting the SSL flag.
| publishKey | Your publish key that allows you to send data to the PubNub cloud |
|---|---|
| subscribeKey | Your subscribe key that allows you to send data to the PubNub cloud |
| secretKey | The secret key given to you when you created the account |
| ssl | Whether to use SSL or not when communicating with the PubNub cloud |
Creates a new PubHub connector with required state. The keys required to create the connector are available from your account on the PubNub website: http://www.pubnub.com/account.
| publishKey | Your publish key that allows you to send data to the PubNub cloud |
|---|---|
| subscribeKey | Your subscribe key that allows you to send data to the PubNub cloud |
| secretKey | The secret key given to you when you created the account |
Creates a new Json Object message. The org.codehaus.jackson.node.ObjectNode can be used like a Map to write key/value pairs. Objects can be text, numeric, binary or complex objects
Load history from a channel.
| channel | Name. |
|---|---|
| limit | History count response. |
Send a json message to a channel.
| channel | Name to publish the message to |
|---|---|
| jsonMessage | The message to publish |
Send a json message to a channel.
| channel | To publish to |
|---|---|
| jsonMessage | The message to publish |
Makes a blocking request to receive a message on a channel.
| channel | Name to read from |
|---|---|
| timeout | How long to wait for a message. The value is expressed in milliseconds. specify for |
Get the Timestamp from PubNub Cloud.
| publishKey |
|---|
| secretKey |
|---|
| ssl |
|---|
| subscribeKey |
|---|
Listen for a message on a channel.
| channel | Name to listen on |
|---|---|
| callback | Callback to execute when a message comes in |
Register a message listener for a channel. This is a blocking subscribe which also means that only one subscription can be made per connector.
Listen for a message on a channel.| channel | Name to listen on |
|---|---|
| listener | The message callback to invoke when a message is received. there will be one invocation per message and the invocation on the message listener is guaranteed never to be null. |