All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.data.thread.module.producerConsumer.domain.ConsumerContext Maven / Gradle / Ivy

The newest version!
package cn.schoolwow.data.thread.module.producerConsumer.domain;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**消费者上下文*/
public class ConsumerContext {
    /**
     * 消费者注册请求
     * */
    public RegisterConsumerRequest registerConsumerRequest;

    /**
     * 消费类型
     * */
    public String messageTypeClassName;

    /**
     * 单任务线程
     * */
    public ExecutorService threadPoolExecutor = Executors.newSingleThreadExecutor();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy