Annotation Interface RPCAttributeMapLock


@Retention(RUNTIME) @Target({}) public @interface RPCAttributeMapLock
Selects one Attribute-map instance to lock during an RPC invocation.

Use this nested annotation from RPC.lockAttributeMaps(). attribute() is the registered Attribute-map name, and instance() is the logical key within that map. Neither value is derived from a Java field name.

@RPC(lockAttributeMaps = {
    @RPCAttributeMapLock(attribute = "order-status", instance = "order-123")
})
public RPCResult<String> readStatus(Context context) { ... }
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Names the registered Attribute map.
    Names the map instance to lock.
  • Element Details

    • attribute

      String attribute
      Names the registered Attribute map.
      Returns:
      the registered Attribute-map name
    • instance

      String instance
      Names the map instance to lock.
      Returns:
      the logical Attribute-map instance key