Interface InstanceStateCallback
-
- All Known Implementing Classes:
InstanceStateNotificationRestStub,InstanceStateNotificationSseStub
public interface InstanceStateCallbackThis is a callback for instance states.- See Also:
InstanceStateNotification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidautoStartPending(@NotNull @Valid EbpInstanceReference activity, @NotNull Long termTime, @NotNull @Valid QualifiedAgent agent, List<URI> rtMgr, @NotNull Boolean rtmResolved)@NotNull UUIDgetId()Gets the unique ID of this callback.voidinstanceFailed(@NotNull UUID instId, @Valid DataContainer dc, @NotNull Long errorCode, String errorMessage, String state)voidinstanceFinished(@NotNull UUID instId, @Valid DataContainer dc)voidinstanceResumed(@NotNull UUID instId, List<URI> newListener, UUID iscId)voidinstanceSuspended(@NotNull UUID instId)
-
-
-
Method Detail
-
getId
@NotNull @NotNull UUID getId()
Gets the unique ID of this callback. When resuming an instance, this ID is used together with the instance Id to decide whether to keep the same callback object or whether to register a new one.
If the ID and the instance ID are the same but the object instance is different, the new callback instance will be ignored when resuming an activity and the old one will be kept.- Returns:
- The unique ID of this callback allowing to decide whether to keep or re-register a callback when resuming.
-
instanceFinished
void instanceFinished(@NotNull @NotNull UUID instId, @Valid @Valid DataContainer dc)
-
instanceSuspended
void instanceSuspended(@NotNull @NotNull UUID instId)
-
instanceResumed
void instanceResumed(@NotNull @NotNull UUID instId, List<URI> newListener, UUID iscId)- Parameters:
iscId- The UUID of theInstanceStateCallbackthat has registered for notifications after resume ornullin case no callback or no instance ofInstanceStateCallbackhas registered for notifications after resume.- See Also:
InstanceStateNotification.instanceResumed(UUID, URI[])
-
instanceFailed
void instanceFailed(@NotNull @NotNull UUID instId, @Valid @Valid DataContainer dc, @NotNull @NotNull Long errorCode, String errorMessage, String state)
-
autoStartPending
void autoStartPending(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull Long termTime, @NotNull @Valid @NotNull @Valid QualifiedAgent agent, List<URI> rtMgr, @NotNull @NotNull Boolean rtmResolved)
-
-