-
public class SearchDebounceResolves how long a search query is debounced for, based on its length.
Queries of one or two characters match a large portion of the data set, which makes them the slowest ones to serve, while they are usually just a step towards the query the user is after. The thresholds match the other Stream Chat SDKs.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerSHORT_QUERY_MAX_LENGTHprivate final LongSHORT_QUERY_DEBOUNCE_MSpublic final static SearchDebounceINSTANCE
-
Method Summary
Modifier and Type Method Description final LongdebounceMsFor(String query, Long debounceMs)Returns the debounce period for query, never shorter than debounceMs. final IntegergetSHORT_QUERY_MAX_LENGTH()final LonggetSHORT_QUERY_DEBOUNCE_MS()-
-
Method Detail
-
debounceMsFor
final Long debounceMsFor(String query, Long debounceMs)
Returns the debounce period for query, never shorter than debounceMs.
-
getSHORT_QUERY_MAX_LENGTH
final Integer getSHORT_QUERY_MAX_LENGTH()
-
getSHORT_QUERY_DEBOUNCE_MS
final Long getSHORT_QUERY_DEBOUNCE_MS()
-
-
-
-