Skip to main content

Attribute

View as Markdown

This page lists the Java SDK names for Attributes. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Java SDK API reference.

API names​

TaskJava APIDex behavior
Define a singleton AttributeAttribute.defineAttributes
Define an AttributeMapAttributeMap.defineAttributes
Declare it in the FlowPersistenceSchema.of, returned from getPersistenceSchemaFlow definition
Read, write, and delete a value in a Step or RPCget, set, and deleteCommits
Address one AttributeMap instanceAttributeMap.instance, or the instance key argument of get, set, and deleteAttributes
Count AttributeMap instances and list their keysAttributeMap.getMapSize and AttributeMap.getAllInstanceKeysSelective state loading
Load AttributeMap values for a methodaddWaitForLoadAttributeMap, addExecuteLoadAttributeMap, and their instance variants of StepOptions.Builder, or loadAttributeMaps and loadAttributeMapInstances of @RPCSelective state loading
Lock a value for a read-modify-writeAttributeLock.of, with addWaitForLock and addExecuteLock of StepOptions.Builder, or lockAttributes and lockAttributeMaps of @RPCLocks
Index a value for searchAttributeIndex and AttributeIndex.Type, passed to defineIndexes
Project writes to an Attribute StoresyncToAttributeStoreAttribute sync
Store a value that can be erasedhardDeleteOnNullHard-delete Attributes
Set a value when the Flow startsStartFlowOptions.Builder.addAttributeAttributes at start
Read values from outside the FlowClient.getAttributesRead Attributes
Wait until a value matchesClient.waitForAttributeMatch, with AttributeMatchWait for an Attribute match

Example​

Example: examples/java/src/main/java/io/superdurable/dex/primitives/attribute/AttributeFlow.java