Annotation Interface RPC


@Retention(RUNTIME) @Target(METHOD) public @interface RPC
This is for annotating an RPC method for an implementation of ObjectWorkflow The method must be in the form of one of RpcDefinitions An RPC implementation can call any APIs to update external systems directly. However, it can also trigger some state execution (using Communication API) to update in the background to ensure the consistency across systems.
  • Element Details

    • timeoutSeconds

      int timeoutSeconds
      Default:
      0
    • dataAttributesLoadingType

      PersistenceLoadingType dataAttributesLoadingType
      Default:
      ALL_WITHOUT_LOCKING
    • dataAttributesPartialLoadingKeys

      String[] dataAttributesPartialLoadingKeys
      Default:
      {}
    • dataAttributesLockingKeys

      String[] dataAttributesLockingKeys
      Default:
      {}
    • searchAttributesLoadingType

      PersistenceLoadingType searchAttributesLoadingType
      Default:
      ALL_WITHOUT_LOCKING
    • searchAttributesPartialLoadingKeys

      String[] searchAttributesPartialLoadingKeys
      Default:
      {}
    • searchAttributesLockingKeys

      String[] searchAttributesLockingKeys
      Default:
      {}
    • bypassCachingForStrongConsistency

      boolean bypassCachingForStrongConsistency
      Only used when workflow has enabled PersistenceOptions CachingPersistenceByMemo By default, it's false for high throughput support flip to true to bypass the caching for strong consistent reads
      Default:
      false