com.alibaba.dubbo.common.utils
Class ExecutorUtil

java.lang.Object
  extended by com.alibaba.dubbo.common.utils.ExecutorUtil

public class ExecutorUtil
extends Object

Author:
chao.liuc

Constructor Summary
ExecutorUtil()
           
 
Method Summary
static void gracefulShutdown(Executor executor, int timeout)
           
static boolean isShutdown(Executor executor)
           
static URL setThreadName(URL url, String defaultName)
          append thread name with url address
static void shutdownNow(Executor executor, int timeout)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutorUtil

public ExecutorUtil()
Method Detail

isShutdown

public static boolean isShutdown(Executor executor)

gracefulShutdown

public static void gracefulShutdown(Executor executor,
                                    int timeout)

shutdownNow

public static void shutdownNow(Executor executor,
                               int timeout)

setThreadName

public static URL setThreadName(URL url,
                                String defaultName)
append thread name with url address

Returns:
new url with updated thread name


Copyright © 2012–2017 Alibaba. All rights reserved.