Skip to main content

Channel

View as Markdown

This page lists the Java SDK names for Channels. 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 ChannelChannel.defineChannels
Define a ChannelMapChannelMap.defineChannelMap
Declare it in the FlowPersistenceSchema.of, returned from getPersistenceSchemaFlow definition
Publish a message from a Step or RPCpublishCommits
Wait for messagesforOne, forN, atLeast, atMost, and rangeWait conditions
Read the messages a wait consumedgetConditionResultsChannel results
Load pending messages for a methodaddWaitForLoadChannel, addExecuteLoadChannel, and their ChannelMap variants of StepOptions.Builder, or loadChannels, loadChannelMaps, and loadChannelMapInstances of @RPCSelective state loading
Read loaded pending messagespendingMessages and findPendingMessagePending messages
Delete a pending messagedeletePending messages
Read the number of pending messagessizeSelective state loading
Count ChannelMap instances and list their keysChannelMap.getMapSize and ChannelMap.getAllInstanceKeysChannelMap
Complete the Flow only when Channels are emptyStepDecision.forceCompleteIfChannelsEmptyForceCompleteIfChannelsEmpty

Example​

Example: examples/java/src/main/java/io/superdurable/dex/primitives/channel/ChannelFlow.java