public class AblyRest extends AblyBase
AutoCloseable so you can use it in
try-with-resources constructs and have the JDK close it for you.AblyBase.Channels| Constructor and Description |
|---|
AblyRest(ClientOptions options)
Construct a client object using an Ably
ClientOptions object. |
AblyRest(java.lang.String key)
Constructs a client object using an Ably API key or token string.
|
close, onAuthError, onAuthUpdated, onAuthUpdatedAsync, onClientIdSet, publishBatch, publishBatch, publishBatchAsync, publishBatchAsync, request, requestAsync, stats, statsAsync, time, timeAsyncpublic AblyRest(java.lang.String key)
throws AblyException
Spec: RSC1
key - The Ably API key or token string used to validate the client.AblyExceptionpublic AblyRest(ClientOptions options) throws AblyException
ClientOptions object.
Spec: RSC1
options - A ClientOptions object to configure the client connection to Ably.AblyException