Class TokenSecondsLicenseHandler

  • All Implemented Interfaces:
    ch.exense.licensing.client.LicenseConsumer, ch.exense.licensing.client.LicenseConsumerProvider, step.functions.execution.TokenLifecycleInterceptor

    public class TokenSecondsLicenseHandler
    extends ch.exense.licensing.client.SimpleLicenseConsumer
    implements step.functions.execution.TokenLifecycleInterceptor
    • Nested Class Summary

      • Nested classes/interfaces inherited from class ch.exense.licensing.client.AbstractLicenseConsumer

        ch.exense.licensing.client.AbstractLicenseConsumer.RequestAndUsage
      • Nested classes/interfaces inherited from interface ch.exense.licensing.client.LicenseConsumer

        ch.exense.licensing.client.LicenseConsumer.UsageRequestBehavior
    • Field Summary

      • Fields inherited from class ch.exense.licensing.client.AbstractLicenseConsumer

        detailedContext, licenseManager, shuttingDown
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()  
      void onGetTokenHandle​(java.lang.String tokenHandleId)  
      void onReturnTokenHandle​(java.lang.String tokenHandleId)  
      • Methods inherited from class ch.exense.licensing.client.SimpleLicenseConsumer

        getConsumerId, getConsumerProviderId, initialize, setCustomerContexts
      • Methods inherited from class ch.exense.licensing.client.AbstractLicenseConsumer

        calculateAndMaybeCommit, calculateAndMaybeCommit, calculateAndMaybeCommit, calculateAndMaybeCommit, calculateUsage, commit_MustSynchronize, commit_MustSynchronize, createUsageCalculator, createUsageRequest, createUsageRequest, getDetailedContext, getGlobalGrants, getGlobalUsages, getUsageStrategy, onCommitUsage, setGlobalGrantsAndUsages, shutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenSecondsLicenseHandler

        public TokenSecondsLicenseHandler​(StepLicenseManager licenseManager)
    • Method Detail

      • getResourcesUsed

        public java.util.List<ch.exense.licensing.model.Resource> getResourcesUsed()
        Specified by:
        getResourcesUsed in interface ch.exense.licensing.client.LicenseConsumer
      • onGetTokenHandle

        public void onGetTokenHandle​(java.lang.String tokenHandleId)
                              throws ch.exense.licensing.LicensingException
        Specified by:
        onGetTokenHandle in interface step.functions.execution.TokenLifecycleInterceptor
        Throws:
        ch.exense.licensing.LicensingException
      • onReturnTokenHandle

        public void onReturnTokenHandle​(java.lang.String tokenHandleId)
        Specified by:
        onReturnTokenHandle in interface step.functions.execution.TokenLifecycleInterceptor