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

com.github.winx402.river.impl.pool.SingleThreadExecutor Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.github.winx402.river.impl.pool;

import java.lang.annotation.*;
import java.util.concurrent.ThreadFactory;

/**
 * @author wangwenxiang
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface SingleThreadExecutor {
    /**
     * thread name prefix
     * @return name
     */
    String name() default "";

    /**
     * the same group will use the same one executor
     * @return group
     */
    String group() default "";

    /**
     * @return threadFactory
     */
    Class threadFactory() default ThreadFactory.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy