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

org.sheinbergon.needle.concurrent.PinnedThreadFactory Maven / Gradle / Ivy

There is a newer version: 0.4.0-RELEASE
Show newest version
package org.sheinbergon.needle.concurrent;

import org.sheinbergon.needle.PinnedThread;

import javax.annotation.Nonnull;
import java.util.concurrent.ThreadFactory;

public interface PinnedThreadFactory extends ThreadFactory {

    /**
     * Constructs a new {@link PinnedThread}.
     *
     * @param r a runnable to be executed by new thread instance
     * @return instantiated {@link PinnedThread}, or {@code null} if the request to
     * create a thread is rejected
     */
    PinnedThread newThread(@Nonnull Runnable r);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy