Class SyncOffloadStickyBucketAdapter

java.lang.Object
growthbook.sdk.java.stickyBucketing.SyncOffloadStickyBucketAdapter
All Implemented Interfaces:
AsyncStickyBucketService

public final class SyncOffloadStickyBucketAdapter extends Object implements AsyncStickyBucketService
Presents a blocking StickyBucketService as an AsyncStickyBucketService by running each call on the supplied executor. The multi-user client uses it for its asynchronous entry points, which must not block their caller; its synchronous evaluation API calls the blocking service on the calling thread instead. It is public so applications composing their own pipelines can reuse it.

getAllAssignments(java.util.Map<java.lang.String, java.lang.String>) is offloaded as ONE task wrapping the delegate's own getAllAssignments, preserving batched implementations (e.g. a single Redis MGET) instead of exploding them into N calls.