Annotation Type 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 Detail

      • timeoutSeconds

        int timeoutSeconds
        Default:
        0
      • dataAttributesLoadingType

        PersistenceLoadingType dataAttributesLoadingType
        Default:
        io.iworkflow.gen.models.PersistenceLoadingType.ALL_WITHOUT_LOCKING
      • dataAttributesPartialLoadingKeys

        java.lang.String[] dataAttributesPartialLoadingKeys
        Default:
        {}
      • dataAttributesLockingKeys

        java.lang.String[] dataAttributesLockingKeys
        Default:
        {}
      • searchAttributesLoadingType

        PersistenceLoadingType searchAttributesLoadingType
        Default:
        io.iworkflow.gen.models.PersistenceLoadingType.ALL_WITHOUT_LOCKING
      • searchAttributesPartialLoadingKeys

        java.lang.String[] searchAttributesPartialLoadingKeys
        Default:
        {}
      • searchAttributesLockingKeys

        java.lang.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