Package io.ably.lib.http
Class Http
- java.lang.Object
-
- io.ably.lib.http.Http
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Http extends java.lang.Object implements java.lang.AutoCloseableA high level wrapper of both a sync and an async HttpScheduler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttp.Execute<Result>classHttp.Request<Result>
-
Constructor Summary
Constructors Constructor Description Http(AsyncHttpScheduler asyncHttp, SyncHttpScheduler syncHttp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<Result> Http.Request<Result>failedRequest(AblyException e)<Result> Http.Request<Result>request(Http.Execute<Result> execute)
-
-
-
Constructor Detail
-
Http
public Http(AsyncHttpScheduler asyncHttp, SyncHttpScheduler syncHttp)
-
-
Method Detail
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
request
public <Result> Http.Request<Result> request(Http.Execute<Result> execute)
-
failedRequest
public <Result> Http.Request<Result> failedRequest(AblyException e)
-
-