Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2010
    Location
    HK
    Posts
    7

    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?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    975
    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

  1. Client only in polling mode
    By EWANG in forum Client APIs
    Replies: 12
    Last Post: August 19th, 2010, 09:52 AM
  2. Lightstreamer going into polling mode randomly
    By GoatHunter in forum Client APIs
    Replies: 3
    Last Post: August 31st, 2009, 09:57 AM
  3. Degrade from STREAMING to POLLING
    By riwang in forum Client APIs
    Replies: 9
    Last Post: March 31st, 2009, 02:16 PM
  4. Replies: 3
    Last Post: February 1st, 2008, 09:49 AM
  5. Smart polling mode benefits...
    By ddhanis in forum General
    Replies: 1
    Last Post: December 14th, 2007, 05:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:19 AM.