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

org.infinispan.commons.ThreadGroups Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.commons;

import org.infinispan.commons.executors.BlockingResource;
import org.infinispan.commons.executors.NonBlockingResource;

public interface ThreadGroups {

    ISPNNonBlockingThreadGroup NON_BLOCKING_GROUP = new ISPNNonBlockingThreadGroup("ISPN-non-blocking-group");
    ISPNBlockingThreadGroup BLOCKING_GROUP = new ISPNBlockingThreadGroup("ISPN-blocking-group");

    final class ISPNNonBlockingThreadGroup extends ThreadGroup implements NonBlockingResource {
        public ISPNNonBlockingThreadGroup(String name) {
            super(name);
        }
    }

    final class ISPNBlockingThreadGroup extends ThreadGroup implements BlockingResource {
        public ISPNBlockingThreadGroup(String name) {
            super(name);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy