Skip to content

Commit

Permalink
fixes for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Jul 8, 2013
1 parent 9fa99cc commit 42a30b8
Show file tree
Hide file tree
Showing 29 changed files with 23 additions and 20 deletions.
Binary file modified android/Pubnub-Android-3.5.2.jar
Binary file not shown.
Binary file modified android/examples/PubnubExample/libs/Pubnub-Android-3.5.2.jar
Binary file not shown.
Binary file modified android/examples/SubscribeAtBoot/libs/Pubnub-Android-3.5.2.jar
Binary file not shown.
Binary file modified blackberry/Pubnub-BlackBerry-3.5.2.jar
Binary file not shown.
Binary file modified j2me/Pubnub-MicroEdition-3.5.2.jar
Binary file not shown.
Binary file modified java/Pubnub-StandardEdition-3.5.2.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion java/doc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
All Classes
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
All Classes
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/Callback.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:02 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:47 IST 2013 -->
<TITLE>
Callback
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/Pubnub.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:47 IST 2013 -->
<TITLE>
Pubnub
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubError.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
PubnubError
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubException.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
PubnubException
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/PubnubUtil.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
PubnubUtil
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
com.pubnub.api
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/com/pubnub/api/package-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
com.pubnub.api Class Hierarchy
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
Constant Field Values
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
Deprecated List
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:04 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
API Help
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
Index
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Mon Jul 08 17:20:03 IST 2013-->
<!-- Generated by javadoc on Mon Jul 08 21:26:48 IST 2013-->
<TITLE>
Generated Documentation (Untitled)
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/overview-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
Class Hierarchy
</TITLE>
Expand Down
2 changes: 1 addition & 1 deletion java/doc/serialized-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 17:20:03 IST 2013 -->
<!-- Generated by javadoc (build 1.6.0_37) on Mon Jul 08 21:26:48 IST 2013 -->
<TITLE>
Serialized Form
</TITLE>
Expand Down
Binary file modified java/jars/Pubnub-UnitTests-3.5.2.jar
Binary file not shown.
Binary file modified java/jars/PubnubDemoConsole.jar
Binary file not shown.
Binary file modified java/jars/PubnubExample.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion java/src1/com/pubnub/api/SubscribeWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@ void process(HttpRequest hreq) {
}
}
hreq.setWorker(this);
boolean sleep = false;
while (!_die && currentRetryAttempt <= maxRetries) {
if ( currentRetryAttempt > 1 ) {
if (sleep) {
try {
Thread.sleep(retryInterval);
} catch (InterruptedException e) {
}
sleep = true;
}
try {
log.debug(hreq.getUrl());
Expand Down
2 changes: 1 addition & 1 deletion java/srcPubnubApi/com/pubnub/api/RequestManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,4 @@ public void setRetryInterval(int retryInterval) {
this.retryInterval = retryInterval;
}

}
}
3 changes: 2 additions & 1 deletion scala/src/com/pubnub/examples/PubnubDevConsole.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ object PubnubDevConsole {
var cip_key = ""
var SSL = false
var reader: Scanner = null
var pubnub = new Pubnub(pub_key, sub_key)
var pubnub: Pubnub = null

def getStringFromConsole(message: String, optional: Boolean = false): String = {

Expand Down Expand Up @@ -109,6 +109,7 @@ object PubnubDevConsole {
error.errorCode match {
case PubnubError.PNERR_FORBIDDEN => { pubnub.unsubscribe(channel);}
case PubnubError.PNERR_UNAUTHORIZED => {pubnub.unsubscribe(channel);}
case _ => {}
}
}
})
Expand Down

0 comments on commit 42a30b8

Please sign in to comment.