HasDynamicSyncPreference
in
Optional interface for adapters whose sync/async preference is determined at runtime rather than at compile time (via marker interfaces RequiresSyncResponse / RequiresAsyncResponse).
When a ConcurrencyHandler encounters an adapter implementing this interface, it calls requiresSyncResponse() instead of checking instanceof markers. This enables adapters like WebAdapter to dynamically switch behavior based on configuration (e.g., asyncMode).
Table of Contents
Methods
- requiresSyncResponse() : bool
- Return true if this adapter's messages must be processed inline (sync), false if they can be deferred (async).
Methods
requiresSyncResponse()
Return true if this adapter's messages must be processed inline (sync), false if they can be deferred (async).
public
requiresSyncResponse() : bool