Uses of Class
io.trino.plugin.hive.util.AsyncQueue.BorrowResult
Packages that use AsyncQueue.BorrowResult
-
Uses of AsyncQueue.BorrowResult in io.trino.plugin.hive.util
Method parameters in io.trino.plugin.hive.util with type arguments of type AsyncQueue.BorrowResultModifier and TypeMethodDescription<O> com.google.common.util.concurrent.ListenableFuture<O> AsyncQueue.borrowBatchAsync(int maxSize, Function<List<T>, AsyncQueue.BorrowResult<T, O>> function) Invokefunctionwith up tomaxSizeelements removed from the head of the queue, and insert elements in the return value to the tail of the queue.<O> com.google.common.util.concurrent.ListenableFuture<O> ThrottledAsyncQueue.borrowBatchAsync(int maxSize, Function<List<T>, AsyncQueue.BorrowResult<T, O>> function)