The SupportedBehaviors of the Endpoint.
Activate a behavior.
Semantically identical to createAsync() but does not return a Promise or throw an error.
Behaviors that fail initialization will be marked with crashed status.
Create a behavior, possibly asynchronously.
This method returns a Promise only if await is necessary so the behavior can be used immediately if possible.
Activate any behaviors designated for immediate activation. Returns a promise iff any behaviors have ongoing initialization.
Throws an error if any behavior crashes, but we allow all behaviors to settle before throwing. The goal is to surface multiple configuration errors and prevent inconsistent state caused by partial initialization.
Access internal state for a Behavior.
Internal state is not stable API and not intended for consumption outside of the behavior. However it is not truly private and may be accessed by tightly coupled implementation.
As this API is intended for use by "friendly" code, it does not perform the same initialization assertions as does access to Behavior.State and Behavior.Events.
Determine if a specified behavior is supported and active.
Retrieve the options for a behavior type provided to the endpoint.
Add behavior support dynamically at runtime. Typically called via Agent.require.
Ensure a set of behavior requirements are met. Throws an error detailing missing requirements.
Optional
requirements: SupportedBehaviors
This class manages Behavior instances owned by a Endpoint.