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.AutoCloseable
A 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
Modifier and Type Method Description voidclose()<Result> Http.Request<Result>failedRequest(AblyException e)<Result> Http.Request<Result>request(Http.Execute<Result> execute)
-
Constructor Details
-
Method Details
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
request
-
failedRequest
-