Example usage for org.springframework.scheduling.concurrent CustomizableThreadFactory setThreadGroupName

List of usage examples for org.springframework.scheduling.concurrent CustomizableThreadFactory setThreadGroupName

Introduction

In this page you can find the example usage for org.springframework.scheduling.concurrent CustomizableThreadFactory setThreadGroupName.

Prototype

public void setThreadGroupName(String name) 

Source Link

Document

Specify the name of the thread group that threads should be created in.

Usage

From source file:com.crossbusiness.resiliency.aspect.AbstractTimeoutAspect.java

private ThreadFactory threadFactory() {
    CustomizableThreadFactory tf = new CustomizableThreadFactory("sumo-timeout-");
    tf.setThreadPriority(Thread.MAX_PRIORITY);
    tf.setDaemon(true);/*w w w .j  ava 2  s.  c om*/
    tf.setThreadGroupName("resiliency");
    return tf;
}