-
January 19th, 2011, 08:06 AM
#1
How to change the streaming/smart polling/polling mode
Hi,
From the API doc of Java client, there is an "isPolling" flag in the "ConnectionInfo" class that can turn from streaming mode to "long polling" mode. Is there any method that can force change to normal polling mode with polling interval setting?
-
January 19th, 2011, 10:23 AM
#2
The characteristics of a polling session are determined by two more properties of the ConnectionInfo class: pollingMillis and pollingIdleMillis.
The former is the wait to be performed by the client after each poll;
the latter is the wait that the Server can perform before sending its response if no update is ready.
By setting pollingIdleMillis to 0, the "long polling" behavior will be disabled and normal synchronous polling will result.
The API doc says that isPolling turns from streaming mode to long polling mode just because the default (and suggested) setting for pollingIdleMillis is not 0 but rather 30000 ms.
Similar Threads
-
By EWANG in forum Client SDKs
Replies: 12
Last Post: August 19th, 2010, 08:52 AM
-
By GoatHunter in forum Client SDKs
Replies: 3
Last Post: August 31st, 2009, 08:57 AM
-
By riwang in forum Client SDKs
Replies: 9
Last Post: March 31st, 2009, 01:16 PM
-
By rsouissi in forum Client SDKs
Replies: 3
Last Post: February 1st, 2008, 08:49 AM
-
By ddhanis in forum General
Replies: 1
Last Post: December 14th, 2007, 04:39 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:13 PM.
Bookmarks