Class ContextImpl

    • Method Detail

      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface Context
        Returns:
        true if context open
      • getName

        public String getName()
        Identifies the Context. This is a unique name optionally specified by the user and safe to index on. The purpose of this property is to provide means to distinct between multiple contexts, without having to check multiple properties or have explicit knowledge of how the context was created.
        Specified by:
        getName in interface Context
        Returns:
      • getIdentity

        public String getIdentity()
        Specified by:
        getIdentity in interface Context
        Returns:
        the current login user, access key, email, or whatever the 'identity' field was building the context.
        See Also:
        ApiMetadata#getDefaultIdentity
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getId

        public String getId()
        Unique ID provided by the provider (us-standard, miami, etc)
        Specified by:
        getId in interface Location
      • getIso3166Codes

        public Set<String> getIso3166Codes()
        Specified by:
        getIso3166Codes in interface Location
        Returns:
        if known, the IS0 3166 or 3166-2 divisions where this service may run. ex. a set of strings like "US" or "US-CA"; otherwise returns an empty list.
        See Also:
        3166