Class AblyRest

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    AblyRealtime

    public class AblyRest
    extends AblyBase
    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.
    • Constructor Detail

      • AblyRest

        public AblyRest​(java.lang.String key)
                 throws AblyException
        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