Skip to content

Commit a4b7227

Browse files
author
Devendra
committed
changes for callbacks
1 parent 232f43d commit a4b7227

13 files changed

Lines changed: 30 additions & 21 deletions

File tree

473 Bytes
Binary file not shown.

‎android/3.4/Pubnub-Android-3.4.jar‎

450 Bytes
Binary file not shown.
Binary file not shown.

‎java/3.3/test/PubnubExample.jar‎

0 Bytes
Binary file not shown.

‎java/3.3/test/PubnubUnitTest.jar‎

0 Bytes
Binary file not shown.
603 Bytes
Binary file not shown.
603 Bytes
Binary file not shown.

‎java/3.4/jars/PubnubExample.jar‎

603 Bytes
Binary file not shown.

‎java/3.4/src/com/pubnub/api/SubscribeWorker.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ void process(HttpRequest hreq) {
2525
break;
2626
}
2727
}
28-
catch (SocketTimeoutException e){
28+
catch (SocketTimeoutException e) {
2929
log.verbose("Exception in Fetch : " + e.toString());
30+
currentRetryAttempt = maxRetries + 1;
3031
break;
3132
}
3233
catch (Exception e) {
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
package com.pubnub.api;
22

3+
import org.apache.commons.logging.Log;
4+
import org.apache.commons.logging.LogFactory;
35

46
public class Logger extends AbstractLogger {
5-
Class _class;
7+
private Class _class;
8+
private Log log ;
9+
610
public Logger(Class _class) {
7-
super();
811
this._class = _class;
12+
log = LogFactory.getLog(this._class);
913
}
1014

1115
public void debug(String s) {
16+
log.debug(s);
1217
}
1318
public void verbose(String s) {
19+
log.trace(s);
1420
}
1521
public void error(String s) {
22+
log.error(s);
1623
}
1724
public void info(String s) {
25+
log.info(s);
1826
}
1927
}

0 commit comments

Comments
 (0)