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

org.ikasan.dashboard.ui.util.VaadinThreadFactory Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package org.ikasan.dashboard.ui.util;

import java.util.concurrent.ThreadFactory;

public class VaadinThreadFactory implements ThreadFactory {
    private static long counter = 0;
    private final String prefix;

    public VaadinThreadFactory(String prefix) {
        this.prefix = prefix;
    }

    @Override
    public Thread newThread(Runnable r) {
        return new Thread(r, prefix + "-" + counter++);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy