Package io.ably.lib.rest
Class AblyRest
- java.lang.Object
-
- io.ably.lib.rest.AblyBase
-
- io.ably.lib.rest.AblyRest
-
- Direct Known Subclasses:
AblyRealtime
public class AblyRest extends AblyBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.ably.lib.rest.AblyBase
AblyBase.Channels
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
-
Methods inherited from class io.ably.lib.rest.AblyBase
onAuthError, onAuthUpdated, onClientIdSet, publishBatch, publishBatchAsync, request, requestAsync, stats, statsAsync, time, timeAsync
-
-
-
-
Constructor Detail
-
AblyRest
public AblyRest(java.lang.String key) throws AblyExceptionInstance the Ably library using a key only. This is simply a convenience constructor for the simplest case of instancing the library with a key for basic authentication and no other options.- Parameters:
key- ; String key (obtained from application dashboard)- Throws:
AblyException
-
AblyRest
public AblyRest(ClientOptions options) throws AblyException
Instance the Ably library with the given options.- Parameters:
options- : seeClientOptionsfor options- Throws:
AblyException
-
-