Top Description Inners Fields Constructors Methods
io.undertow.server.protocol.framed

pack-priv final Class ShutdownFallbackExecutor

extends Object
Class Inheritance
Imports
java.util.concurrent.Executor, .Executors, .LinkedBlockingQueue, .ThreadFactory, .ThreadPoolExecutor, .TimeUnit, java.util.concurrent.atomic.AtomicLong

ShutdownFallbackExecutor wrapper around a single threaded executor which will execute pending tasks when the worker has been shut down.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static volatile Executor

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
execute(Runnable runnable)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EXECUTORback to summary
private static volatile Executor EXECUTOR

Constructor Detail

ShutdownFallbackExecutorback to summary
private ShutdownFallbackExecutor()

Method Detail

executeback to summary
pack-priv static void execute(Runnable runnable)
io.undertow.server.protocol.framed back to summary

pack-priv final Class ShutdownFallbackExecutor.ShutdownFallbackThreadFactory

extends Object
implements ThreadFactory
Class Inheritance
  • java.lang.Object
  • io.undertow.server.protocol.framed.ShutdownFallbackExecutor.ShutdownFallbackThreadFactory
All Implemented Interfaces
java.util.concurrent.ThreadFactory

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final ThreadFactory

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Thread
newThread(Runnable
a runnable to be executed by new thread instance
r
)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private final AtomicLong count
threadFactoryback to summary
private final ThreadFactory threadFactory

Constructor Detail

ShutdownFallbackThreadFactoryback to summary
pack-priv ShutdownFallbackThreadFactory()

Method Detail

newThreadback to summary
public Thread newThread(Runnable r)

Implements java.util.concurrent.ThreadFactory.newThread.

Doc from java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Parameters
r:Runnable

a runnable to be executed by new thread instance

Returns:Thread

constructed thread, or null if the request to create a thread is rejected

Annotations
@Override