Class TagHistoryLicense

  • All Implemented Interfaces:
    LicenseStateUpdateListener, java.util.EventListener

    public class TagHistoryLicense
    extends java.lang.Object
    implements LicenseStateUpdateListener
    This class is used to manage tag history licensing. The only tricky aspect of it is that due to historical reasons, it also checks a platform feature that allows tag history.

    There are static functions for retrieving state. However, it is better to use create() to get an instance, which will subscribe to various system, update the state, and cache it for better performance.

    In 8.1, we decided to start protected all tag history functionality with the module. Historically, querying was free, and it can still be, but we should probably require a license in order to do it. We have introduced a new "limited" edition for that reason.

    • Method Detail

      • create

        public static TagHistoryLicense create​(GatewayContext context)
        I prefer this static creation in order to avoid implying the adding of listeners in the constructor. That is, it balances shutdown()
      • shutdown

        public void shutdown()
      • canStore

        public boolean canStore()
      • canQuery

        public boolean canQuery()
      • refreshState

        protected void refreshState()
      • isActive

        public static boolean isActive​(GatewayContext context)
        Returns whether tag history is available and not demo expired.