22<!--NewPage-->
33< HTML >
44< HEAD >
5- <!-- Generated by javadoc (build 1.6.0_65) on Thu Feb 06 02:43 :54 GMT+05:30 2014 -->
5+ <!-- Generated by javadoc (build 1.6.0_65) on Fri Feb 07 02:45 :54 GMT+05:30 2014 -->
66< TITLE >
77Pubnub
88</ TITLE >
99
10- < META NAME ="date " CONTENT ="2014-02-06 ">
10+ < META NAME ="date " CONTENT ="2014-02-07 ">
1111
1212< LINK REL ="stylesheet " TYPE ="text/css " HREF ="../../../stylesheet.css " TITLE ="Style ">
1313
@@ -252,6 +252,14 @@ <H2>
252252< TR BGCOLOR ="white " CLASS ="TableRowColor ">
253253< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
254254< CODE > int</ CODE > </ FONT > </ TD >
255+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#getHeartbeat() "> getHeartbeat</ A > </ B > ()</ CODE >
256+
257+ < BR >
258+ Returns presence expiry timeout value</ TD >
259+ </ TR >
260+ < TR BGCOLOR ="white " CLASS ="TableRowColor ">
261+ < TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
262+ < CODE > int</ CODE > </ FONT > </ TD >
255263< TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#getMaxRetries() "> getMaxRetries</ A > </ B > ()</ CODE >
256264
257265< BR >
@@ -275,14 +283,6 @@ <H2>
275283</ TR >
276284< TR BGCOLOR ="white " CLASS ="TableRowColor ">
277285< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
278- < CODE > int</ CODE > </ FONT > </ TD >
279- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#getPnExpires() "> getPnExpires</ A > </ B > ()</ CODE >
280-
281- < BR >
282- Returns presence expiry timeout value</ TD >
283- </ TR >
284- < TR BGCOLOR ="white " CLASS ="TableRowColor ">
285- < TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
286286< CODE > boolean</ CODE > </ FONT > </ TD >
287287< TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#getResumeOnReconnect() "> getResumeOnReconnect</ A > </ B > ()</ CODE >
288288
342342< TR BGCOLOR ="white " CLASS ="TableRowColor ">
343343< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
344344< CODE > void</ CODE > </ FONT > </ TD >
345- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#hereNow(boolean, boolean, com.pubnub.api.Callback) "> hereNow</ A > </ B > (boolean metadata ,
346- boolean disable_uuids ,
345+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#hereNow(boolean, boolean, com.pubnub.api.Callback) "> hereNow</ A > </ B > (boolean state ,
346+ boolean uuids ,
347347 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ CODE >
348348
349349< BR >
353353< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
354354< CODE > void</ CODE > </ FONT > </ TD >
355355< TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#hereNow(java.lang.String, boolean, boolean, com.pubnub.api.Callback) "> hereNow</ A > </ B > (java.lang.String channel,
356- boolean metadata ,
357- boolean disable_uuids ,
356+ boolean state ,
357+ boolean uuids ,
358358 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ CODE >
359359
360360< BR >
@@ -670,44 +670,44 @@ <H2>
670670< TR BGCOLOR ="white " CLASS ="TableRowColor ">
671671< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
672672< CODE > void</ CODE > </ FONT > </ TD >
673- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setMaxRetries (int) "> setMaxRetries </ A > </ B > (int maxRetries )</ CODE >
673+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setHeartbeat (int) "> setHeartbeat </ A > </ B > (int heartbeat )</ CODE >
674674
675675< BR >
676- This methods sets maximum number of retries for subscribe. </ TD >
676+ </ TD >
677677</ TR >
678678< TR BGCOLOR ="white " CLASS ="TableRowColor ">
679679< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
680680< CODE > void</ CODE > </ FONT > </ TD >
681- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setNonSubscribeTimeout(int) "> setNonSubscribeTimeout</ A > </ B > (int timeout)</ CODE >
681+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setHeartbeat(int, com.pubnub.api.Callback) "> setHeartbeat</ A > </ B > (int heartbeat,
682+ < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ CODE >
682683
683684< BR >
684- This method set timeout value for non subscribe operations like publish,
685- history, hereNow.</ TD >
685+ This method sets presence expiry timeout.</ TD >
686686</ TR >
687687< TR BGCOLOR ="white " CLASS ="TableRowColor ">
688688< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
689689< CODE > void</ CODE > </ FONT > </ TD >
690- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setOrigin(java.lang.String ) "> setOrigin </ A > </ B > (java.lang.String origin )</ CODE >
690+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setMaxRetries(int ) "> setMaxRetries </ A > </ B > (int maxRetries )</ CODE >
691691
692692< BR >
693- Sets origin value, default is "pubsub" </ TD >
693+ This methods sets maximum number of retries for subscribe. </ TD >
694694</ TR >
695695< TR BGCOLOR ="white " CLASS ="TableRowColor ">
696696< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
697697< CODE > void</ CODE > </ FONT > </ TD >
698- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setPnExpires (int) "> setPnExpires </ A > </ B > (int pnexpires )</ CODE >
698+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setNonSubscribeTimeout (int) "> setNonSubscribeTimeout </ A > </ B > (int timeout )</ CODE >
699699
700700< BR >
701- </ TD >
701+ This method set timeout value for non subscribe operations like publish,
702+ history, hereNow.</ TD >
702703</ TR >
703704< TR BGCOLOR ="white " CLASS ="TableRowColor ">
704705< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
705706< CODE > void</ CODE > </ FONT > </ TD >
706- < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setPnExpires(int, com.pubnub.api.Callback) "> setPnExpires</ A > </ B > (int pnexpires,
707- < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ CODE >
707+ < TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setOrigin(java.lang.String) "> setOrigin</ A > </ B > (java.lang.String origin)</ CODE >
708708
709709< BR >
710- This method sets presence expiry timeout. </ TD >
710+ Sets origin value, default is "pubsub" </ TD >
711711</ TR >
712712< TR BGCOLOR ="white " CLASS ="TableRowColor ">
713713< TD ALIGN ="right " VALIGN ="top " WIDTH ="1% "> < FONT SIZE ="-1 ">
731731< CODE > void</ CODE > </ FONT > </ TD >
732732< TD > < CODE > < B > < A HREF ="../../../com/pubnub/api/Pubnub.html#setState(java.lang.String, java.lang.String, org.json.JSONObject, com.pubnub.api.Callback) "> setState</ A > </ B > (java.lang.String channel,
733733 java.lang.String uuid,
734- org.json.JSONObject metadata ,
734+ org.json.JSONObject state ,
735735 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ CODE >
736736
737737< BR >
@@ -1346,35 +1346,35 @@ <H2>
13461346</ DL >
13471347< HR >
13481348
1349- < A NAME ="setPnExpires (int, com.pubnub.api.Callback) "> <!-- --> </ A > < H3 >
1350- setPnExpires </ H3 >
1349+ < A NAME ="setHeartbeat (int, com.pubnub.api.Callback) "> <!-- --> </ A > < H3 >
1350+ setHeartbeat </ H3 >
13511351< PRE >
1352- public void < B > setPnExpires </ B > (int pnexpires ,
1352+ public void < B > setHeartbeat </ B > (int heartbeat ,
13531353 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ PRE >
13541354< DL >
13551355< DD > This method sets presence expiry timeout.
13561356< P >
13571357< DD > < DL >
1358- < DT > < B > Parameters:</ B > < DD > < CODE > pnexpires </ CODE > - Presence Expiry value in seconds</ DL >
1358+ < DT > < B > Parameters:</ B > < DD > < CODE > heartbeat </ CODE > - Presence Heartbeat value in seconds</ DL >
13591359</ DD >
13601360</ DL >
13611361< HR >
13621362
1363- < A NAME ="setPnExpires (int) "> <!-- --> </ A > < H3 >
1364- setPnExpires </ H3 >
1363+ < A NAME ="setHeartbeat (int) "> <!-- --> </ A > < H3 >
1364+ setHeartbeat </ H3 >
13651365< PRE >
1366- public void < B > setPnExpires </ B > (int pnexpires )</ PRE >
1366+ public void < B > setHeartbeat </ B > (int heartbeat )</ PRE >
13671367< DL >
13681368< DD > < DL >
13691369</ DL >
13701370</ DD >
13711371</ DL >
13721372< HR >
13731373
1374- < A NAME ="getPnExpires () "> <!-- --> </ A > < H3 >
1375- getPnExpires </ H3 >
1374+ < A NAME ="getHeartbeat () "> <!-- --> </ A > < H3 >
1375+ getHeartbeat </ H3 >
13761376< PRE >
1377- public int < B > getPnExpires </ B > ()</ PRE >
1377+ public int < B > getHeartbeat </ B > ()</ PRE >
13781378< DL >
13791379< DD > Returns presence expiry timeout value
13801380< P >
@@ -1637,7 +1637,7 @@ <H2>
16371637< PRE >
16381638public void < B > setState</ B > (java.lang.String channel,
16391639 java.lang.String uuid,
1640- org.json.JSONObject metadata ,
1640+ org.json.JSONObject state ,
16411641 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ PRE >
16421642< DL >
16431643< DD > < DL >
@@ -1676,8 +1676,8 @@ <H2>
16761676< A NAME ="hereNow(boolean, boolean, com.pubnub.api.Callback) "> <!-- --> </ A > < H3 >
16771677hereNow</ H3 >
16781678< PRE >
1679- public void < B > hereNow</ B > (boolean metadata ,
1680- boolean disable_uuids ,
1679+ public void < B > hereNow</ B > (boolean state ,
1680+ boolean uuids ,
16811681 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ PRE >
16821682< DL >
16831683< DD > < DL >
@@ -1690,14 +1690,14 @@ <H2>
16901690hereNow</ H3 >
16911691< PRE >
16921692public void < B > hereNow</ B > (java.lang.String channel,
1693- boolean metadata ,
1694- boolean disable_uuids ,
1693+ boolean state ,
1694+ boolean uuids ,
16951695 < A HREF ="../../../com/pubnub/api/Callback.html " title ="class in com.pubnub.api "> Callback</ A > callback)</ PRE >
16961696< DL >
16971697< DD > Read presence information from a channel
16981698< P >
16991699< DD > < DL >
1700- < DT > < B > Parameters:</ B > < DD > < CODE > channel</ CODE > - Channel name< DD > < CODE > metadata </ CODE > - metadata enabled ?< DD > < CODE > disable_uuids </ CODE > - disable returning uuids in response ?< DD > < CODE > callback</ CODE > - object of sub class of Callback class</ DL >
1700+ < DT > < B > Parameters:</ B > < DD > < CODE > channel</ CODE > - Channel name< DD > < CODE > state </ CODE > - state enabled ?< DD > < CODE > uuids </ CODE > - enable / disable returning uuids in response ?< DD > < CODE > callback</ CODE > - object of sub class of Callback class</ DL >
17011701</ DD >
17021702</ DL >
17031703< HR >
0 commit comments