public class AblyRest
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
AblyRest.Channels
A collection of Channels associated with an Ably instance.
|
| Modifier and Type | Field and Description |
|---|---|
AsyncHttp |
asyncHttp |
Auth |
auth |
AblyRest.Channels |
channels |
Http |
http |
ClientOptions |
options |
| Constructor and Description |
|---|
AblyRest(ClientOptions options)
Instance the Ably library with the given options.
|
AblyRest(java.lang.String key)
Instance the Ably library using a key only.
|
| Modifier and Type | Method and Description |
|---|---|
PaginatedResult<Stats> |
stats(Param[] params)
Request usage statistics for this application.
|
void |
statsAsync(Param[] params,
Callback<AsyncPaginatedResult<Stats>> callback)
Asynchronously obtain usage statistics for this application using the REST API.
|
long |
time()
Obtain the time from the Ably service.
|
void |
timeAsync(Callback<java.lang.Long> callback)
Asynchronously obtain the time from the Ably service.
|
public final ClientOptions options
public final Http http
public final AsyncHttp asyncHttp
public final Auth auth
public final AblyRest.Channels channels
public AblyRest(java.lang.String key)
throws AblyException
key; - String key (obtained from application dashboard)AblyExceptionpublic AblyRest(ClientOptions options) throws AblyException
options: - see ClientOptions for optionsAblyExceptionpublic long time()
throws AblyException
AblyExceptionpublic void timeAsync(Callback<java.lang.Long> callback)
callback - public PaginatedResult<Stats> stats(Param[] params) throws AblyException
params - query options: see Ably REST API documentation
for available optionsAblyExceptionpublic void statsAsync(Param[] params, Callback<AsyncPaginatedResult<Stats>> callback)
params: - the request params. See the Ably REST APIcallback -