AsyncConfiguration

class AsyncConfiguration(properties: AgentPlatformProperties, appUsesVirtualThreads: Boolean)

Configures async execution for the Embabel agent platform.

Threading model based on:

  1. Application's spring.threads.virtual.enabled property (inheritance)

  2. embabel.agent.platform.virtual.threads.override (flip threading model)

  3. embabel.agent.platform.threading.shared (share executor when models match)

Constructors

Link copied to clipboard
constructor(properties: AgentPlatformProperties, appUsesVirtualThreads: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun asyncer(applicationExecutor: <Error class: unknown class><Executor>): Asyncer

Creates the Asyncer abstraction for Embabel agent operations.

Link copied to clipboard

Shuts down executor created by Embabel. Does nothing when sharing app's executor.