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 viaRuntimeEnvironment.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ResumingRuntimeManager.AutomaticResumer
A service that is able to automatically resume activities after a designated time period receives a request for this operation via this interface.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deregisterAutomaticResumer(ResumingRuntimeManager.AutomaticResumer automaticResumer)
Deregisters a service that provides the means to resume an activity automatically.void
registerAutomaticResumer(ResumingRuntimeManager.AutomaticResumer automaticResumer)
Registers a service that provides the means to resume an activity automatically.
-
-
-
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.
-
-