com.github.phantomthief.collection.impl.GenericBatchConsumerTriggerBuilder Maven / Gradle / Ivy
package com.github.phantomthief.collection.impl;
import java.time.Duration;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Supplier;
import com.github.phantomthief.collection.BufferTrigger;
import com.github.phantomthief.util.ThrowableConsumer;
/**
* {@link BatchConsumeBlockingQueueTrigger}通用构造器.
*
* 当对{@link BatchConsumeBlockingQueueTrigger}有更多自定义配置时可使用该构造器.
*
* 本质上包装了{@link BatchConsumerTriggerBuilder},屏蔽底层细节.
* @author w.vela
*/
public class GenericBatchConsumerTriggerBuilder {
private final BatchConsumerTriggerBuilder
© 2015 - 2025 Weber Informatics LLC | Privacy Policy