本文整理了Java中com.netflix.hystrix.Hystrix._reset()
方法的一些代码示例,展示了Hystrix._reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hystrix._reset()
方法的具体详情如下:
包路径:com.netflix.hystrix.Hystrix
类名称:Hystrix
方法名:_reset
[英]Reset logic that doesn't have time/TimeUnit arguments.
[中]重置没有时间/时间单位参数的逻辑。
代码示例来源:origin: PipelineAI/pipeline
/**
* Reset state and release resources in use (such as thread-pools).
* <p>
* NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
* </p>
*/
public static void reset() {
// shutdown thread-pools
HystrixThreadPool.Factory.shutdown();
_reset();
}
代码示例来源:origin: PipelineAI/pipeline
/**
* Reset state and release resources in use (such as threadpools) and wait for completion.
* <p>
* NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
* </p>
*
* @param time
* time to wait for thread-pools to shutdown
* @param unit
* {@link TimeUnit} for <pre>time</pre> to wait for thread-pools to shutdown
*/
public static void reset(long time, TimeUnit unit) {
// shutdown thread-pools
HystrixThreadPool.Factory.shutdown(time, unit);
_reset();
}
代码示例来源:origin: com.netflix.hystrix/hystrix-core
/**
* Reset state and release resources in use (such as thread-pools).
* <p>
* NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
* </p>
*/
public static void reset() {
// shutdown thread-pools
HystrixThreadPool.Factory.shutdown();
_reset();
}
代码示例来源:origin: com.netflix.hystrix/hystrix-core
/**
* Reset state and release resources in use (such as threadpools) and wait for completion.
* <p>
* NOTE: This can result in race conditions if HystrixCommands are concurrently being executed.
* </p>
*
* @param time
* time to wait for thread-pools to shutdown
* @param unit
* {@link TimeUnit} for <pre>time</pre> to wait for thread-pools to shutdown
*/
public static void reset(long time, TimeUnit unit) {
// shutdown thread-pools
HystrixThreadPool.Factory.shutdown(time, unit);
_reset();
}
内容来源于网络,如有侵权,请联系作者删除!