Class AblyRest

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

    public class AblyRest
    extends AblyBase
    The top-level class to be instanced for the Ably REST library for JRE. 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
        Instance 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