Revision 2f4ea617 src/gr/grnet/pithos/web/client/rest/GetRequest.java
b/src/gr/grnet/pithos/web/client/rest/GetRequest.java | ||
---|---|---|
48 | 48 |
import com.google.gwt.http.client.Response; |
49 | 49 |
|
50 | 50 |
public abstract class GetRequest<T extends Resource> implements ScheduledCommand { |
51 |
|
|
52 |
protected static final int MAX_RETRIES = 3; |
|
53 |
|
|
54 |
protected int retries = 0; |
|
51 | 55 |
|
52 | 56 |
protected Class<T> aClass; |
53 | 57 |
|
... | ... | |
123 | 127 |
GetRequest.this.onUnauthorized(response); |
124 | 128 |
} |
125 | 129 |
}); |
130 |
retries++; |
|
126 | 131 |
} |
127 | 132 |
catch (RequestException e) { |
128 | 133 |
} |
Also available in: Unified diff