Skip to content

Commit

Permalink
#517 let AsyncRequest implement Runnable for its children
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil authored and paddybyers committed Nov 8, 2019
1 parent 258060c commit 47355c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/main/java/io/ably/lib/http/HttpScheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public <T> Future<T> exec(String path, String method, Param[] headers, Param[] p
* An AsyncRequest type representing a request to a specific URL
* @param <T>
*/
private class UrlRequest<T> extends AsyncRequest<T> implements Runnable {
private class UrlRequest<T> extends AsyncRequest<T> {
private UrlRequest(
URL url,
final String method,
Expand Down Expand Up @@ -138,7 +138,7 @@ public void run() {
* supporting reauthentication on receipt of WWW-Authenticate
* @param <T>
*/
private class AblyRequestWithRetry<T> extends AsyncRequest<T> implements Runnable {
private class AblyRequestWithRetry<T> extends AsyncRequest<T> {
private AblyRequestWithRetry(
String host,
String path,
Expand Down Expand Up @@ -175,7 +175,7 @@ public void run() {
* supporting host fallback and reauthentication on receipt of WWW-Authenticate
* @param <T>
*/
private class AblyRequestWithFallback<T> extends AsyncRequest<T> implements Runnable {
private class AblyRequestWithFallback<T> extends AsyncRequest<T> {
private AblyRequestWithFallback(
String path,
final String method,
Expand Down Expand Up @@ -228,7 +228,7 @@ public void run() {
* A class encapsulating a scheduled or in-process async HTTP request
* @param <T>
*/
private abstract class AsyncRequest<T> implements Future<T> {
private abstract class AsyncRequest<T> implements Future<T>, Runnable {
private AsyncRequest(
final String method,
final Param[] headers,
Expand Down

0 comments on commit 47355c9

Please sign in to comment.