public class ActivationManagerImpl extends ActivationMonitor implements ActivationManagerProvider, com.vmware.vapi.internal.std.activation.impl.ActivationRegistry
In memory registry for activations. It is both an implementation of an
activation manager service (used by clients to cancel method invocations) and
a ActivationMonitor (used by service implementations to check for
their own cancellation status). It requires an ActivationFilter to be
deployed.
Thread-safety: the implementation is thread-safe.
_VAPI_SERVICE_ID| Constructor and Description |
|---|
ActivationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String activationId,
AsyncContext<Void> asyncContext)
Asks for cancellation of a running activation.
|
boolean |
isCancelRequested(String activationId)
Returns whether cancellation is requested for the specified activation.
|
void |
register(String activationId,
MethodIdentifier methodId)
Registers an activation.
|
void |
unregister(String activationId)
Unregisters an activation.
|
public void register(String activationId, MethodIdentifier methodId) throws IllegalArgumentException, IllegalStateException
com.vmware.vapi.internal.std.activation.impl.ActivationRegistryregister in interface com.vmware.vapi.internal.std.activation.impl.ActivationRegistryactivationId - activation identifier; must not be nullmethodId - identifier of the method whose activation is registered;
must not be nullIllegalArgumentException - if an argument is nullIllegalStateException - if there is already an activation with the
specified identifierpublic void unregister(String activationId) throws IllegalArgumentException
com.vmware.vapi.internal.std.activation.impl.ActivationRegistryunregister in interface com.vmware.vapi.internal.std.activation.impl.ActivationRegistryactivationId - activation identifier; must not be nullIllegalArgumentException - if the activation id is missingpublic boolean isCancelRequested(String activationId)
ActivationMonitorisCancelRequested in class ActivationMonitoractivationId - activation identifierpublic void cancel(String activationId, AsyncContext<Void> asyncContext)
ActivationManagerProviderOperation Errors:
NotFound - there is no activation with the specified id
cancel in interface ActivationManagerProvideractivationId - activation identifierasyncContext - Handle to report the progress, result or error of the operation invocation.Copyright © 2023. All rights reserved.