Interface ResumingRuntimeManager


  • public interface ResumingRuntimeManager
    This runtime manager provides the means to automatically resume a suspended activity. An activity may signal to be resumed after a designated time via RuntimeEnvironment.applicationSuspended(long). Such a request is forwarded by this interface and allows an automatic client to resume the corresponding instance.
    The resuming has to be done by a service that has its own worklist, for instance an automatic client since resuming should always be initiated via a worklist.

    A runtime manager may implement this interface. If it does not, the using service will not be able to automatically resume activities. The service may then either fail or just continue with limited functions.

    Author:
    Ulrich Kreher
    • Method Detail

      • registerAutomaticResumer

        void registerAutomaticResumer​(ResumingRuntimeManager.AutomaticResumer automaticResumer)
        Registers a service that provides the means to resume an activity automatically.
        Parameters:
        automaticResumer - The service providing the means to resume an activity automatically.
      • deregisterAutomaticResumer

        void deregisterAutomaticResumer​(ResumingRuntimeManager.AutomaticResumer automaticResumer)
        Deregisters a service that provides the means to resume an activity automatically. If the designated service has not been registered yet, the method call will be ignored.
        Parameters:
        automaticResumer - The service providing the means to resume an activity automatically.