Package io.ably.lib.rest
Class AblyRest
java.lang.Object
io.ably.lib.rest.AblyBase
io.ably.lib.rest.AblyRest
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AblyRealtime
A client that offers a simple stateless API to interact directly with Ably's REST API.
This class implements
AutoCloseable
so you can use it in
try-with-resources constructs and have the JDK close it for you.-
Nested Class Summary
Nested classes/interfaces inherited from class io.ably.lib.rest.AblyBase
AblyBase.Channels
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAblyRest
(ClientOptions options) Construct a client object using an AblyClientOptions
object.Constructs a client object using an Ably API key or token string. -
Method Summary
Methods inherited from class io.ably.lib.rest.AblyBase
close, onAuthError, onAuthUpdated, onAuthUpdatedAsync, onClientIdSet, publishBatch, publishBatch, publishBatchAsync, publishBatchAsync, request, requestAsync, stats, statsAsync, time, timeAsync
-
Constructor Details
-
AblyRest
Constructs a client object using an Ably API key or token string.Spec: RSC1
- Parameters:
-
key
- The Ably API key or token string used to validate the client. - Throws:
AblyException
-
AblyRest
Construct a client object using an AblyClientOptions
object.Spec: RSC1
- Parameters:
-
options
- AClientOptions
object to configure the client connection to Ably. - Throws:
AblyException
-