Package io.iworkflow.core
Annotation Type RPC
-
@Retention(RUNTIME) @Target(METHOD) public @interface RPC
This is for annotating an RPC method for an implementation ofObjectWorkflow
The method must be in the form of one ofRpcDefinitions
An RPC implementation can call any APIs to update external systems directly. However, it can also trigger some state execution (usingCommunication
API) to update in the background to ensure the consistency across systems.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
bypassCachingForStrongConsistency
Only used when workflow has enabledPersistenceOptions
CachingPersistenceByMemo By default, it's false for high throughput support flip to true to bypass the caching for strong consistent readsPersistenceLoadingType
dataAttributesLoadingType
java.lang.String[]
dataAttributesLockingKeys
java.lang.String[]
dataAttributesPartialLoadingKeys
PersistenceLoadingType
searchAttributesLoadingType
java.lang.String[]
searchAttributesLockingKeys
java.lang.String[]
searchAttributesPartialLoadingKeys
int
timeoutSeconds
-
-
-
-
dataAttributesLoadingType
PersistenceLoadingType dataAttributesLoadingType
- Default:
- io.iworkflow.gen.models.PersistenceLoadingType.ALL_WITHOUT_LOCKING
-
-
-
searchAttributesLoadingType
PersistenceLoadingType searchAttributesLoadingType
- Default:
- io.iworkflow.gen.models.PersistenceLoadingType.ALL_WITHOUT_LOCKING
-
-
-
bypassCachingForStrongConsistency
boolean bypassCachingForStrongConsistency
Only used when workflow has enabledPersistenceOptions
CachingPersistenceByMemo By default, it's false for high throughput support flip to true to bypass the caching for strong consistent reads- Default:
- false
-
-