Top Inners Fields Constructors Methods
io.undertow.servlet.spec

public Class AsyncContextImpl

extends Object
implements AsyncContext
Class Inheritance
All Implemented Interfaces
jakarta.servlet.AsyncContext
Imports
java.io.IOException, java.util.ArrayDeque, .Deque, .List, java.util.concurrent.CopyOnWriteArrayList, .Executor, .TimeUnit, jakarta.servlet.AsyncContext, .AsyncEvent, .AsyncListener, .DispatcherType, .RequestDispatcher, .ServletContext, .ServletException, .ServletRequest, .ServletResponse, jakarta.servlet.http.HttpServletRequest, .HttpServletResponse, org.xnio.IoUtils, .XnioExecutor, io.undertow.UndertowLogger, io.undertow.server.Connectors, .ExchangeCompletionListener, .HttpHandler, .HttpServerExchange, io.undertow.servlet.UndertowServletLogger, .UndertowServletMessages, io.undertow.servlet.api.Deployment, .DeploymentManager, .ExceptionHandler, .InstanceFactory, .InstanceHandle, .LoggingExceptionHandler, .ServletContainer, .ServletDispatcher, io.undertow.servlet.handlers.ServletDebugPageHandler, .ServletPathMatch, .ServletRequestContext, io.undertow.servlet.util.DispatchUtils, io.undertow.util.CanonicalPathUtils, .Headers, .ParameterLimitException, .SameThreadExecutor, .StatusCodes, .WorkerUtils

Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class
private class

Field Summary

Modifier and TypeField and Description
private final List<AsyncContextImpl.BoundAsyncListener>
private final Deque<Runnable>
private volatile boolean
private volatile boolean
private boolean
private final HttpServerExchange
private boolean
private Thread
private AsyncContextImpl
private boolean
private final boolean
private final ServletRequest
private final ServletRequestContext
private final ServletResponse
private volatile long
private volatile XnioExecutor.Key
private final AsyncContextImpl.TimeoutTask

Constructor Summary

AccessConstructor and Description
public
AsyncContextImpl(final HttpServerExchange exchange, final ServletRequest servletRequest, final ServletResponse servletResponse, final ServletRequestContext servletRequestContext, boolean requestSupplied, final AsyncContextImpl previousAsyncContext)

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addAsyncTask(final Runnable
The runnable
runnable
)

Adds a task to be run to the async context.

public void
addListener(final AsyncListener
the AsyncListener to be registered
listener
)

Implements jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

public void
addListener(final AsyncListener
the AsyncListener to be registered
listener
,
final ServletRequest
the ServletRequest that will be included in the AsyncEvent
servletRequest
,
final ServletResponse
the ServletResponse that will be included in the AsyncEvent
servletResponse
)

Implements jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

private Executor
public synchronized void
complete()

Implements jakarta.servlet.AsyncContext.complete.

Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext.

public synchronized void
completeInternal(boolean forceComplete)

public <T extends AsyncListener> T
createListener(final Class<T>
the AsyncListener class to instantiate
clazz
)

Implements jakarta.servlet.AsyncContext.createListener.

Instantiates the given AsyncListener class.

public void
dispatch()

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the servlet container.

public void
dispatch(final String
the path of the dispatch target, scoped to the ServletContext from which this AsyncContext was initialized
path
)

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path.

public void
dispatch(final ServletContext
the ServletContext of the dispatch target
context
,
final String
the path of the dispatch target, scoped to the given ServletContext
path
)

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context.

private void
dispatchAsyncRequest(final ServletDispatcher servletDispatcher, final ServletPathMatch pathInfo, final HttpServerExchange exchange)

private synchronized void
doDispatch(final Runnable runnable)

public ServletRequest
getRequest()

Implements jakarta.servlet.AsyncContext.getRequest.

Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

public ServletResponse
getResponse()

Implements jakarta.servlet.AsyncContext.getResponse.

Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

public long
getTimeout()

Implements jakarta.servlet.AsyncContext.getTimeout.

Gets the timeout (in milliseconds) for this AsyncContext.

public void
public void
handleError(final Throwable error)

public boolean
hasOriginalRequestAndResponse()

Implements jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Checks if this AsyncContext was initialized with the original or application-wrapped request and response objects.

public synchronized void
initialRequestDone()

Called by the container when the initial request is finished.

public synchronized void
public boolean
public boolean
public boolean
private void
private void
private void
private void
onAsyncStart(final AsyncContext newAsyncContext)

private void
private synchronized void
public synchronized void
setTimeout(final long
the timeout in milliseconds
timeout
)

Implements jakarta.servlet.AsyncContext.setTimeout.

Sets the timeout (in milliseconds) for this AsyncContext.

private void
setupRequestContext(final boolean setupRequired)

public void
start(final Runnable
the asynchronous handler
run
)

Implements jakarta.servlet.AsyncContext.start.

Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable.

private void
tearDownRequestContext(final boolean setupRequired)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

asyncListenersback to summary
private final List<AsyncContextImpl.BoundAsyncListener> asyncListeners
asyncTaskQueueback to summary
private final Deque<Runnable> asyncTaskQueue
completeback to summary
private volatile boolean complete
completedBeforeInitialRequestDoneback to summary
private volatile boolean completedBeforeInitialRequestDone
dispatchedback to summary
private boolean dispatched
exchangeback to summary
private final HttpServerExchange exchange
initialRequestDoneback to summary
private boolean initialRequestDone
initiatingThreadback to summary
private Thread initiatingThread
previousAsyncContextback to summary
private AsyncContextImpl previousAsyncContext
processingAsyncTaskback to summary
private boolean processingAsyncTask
requestSuppliedback to summary
private final boolean requestSupplied
servletRequestback to summary
private final ServletRequest servletRequest
servletRequestContextback to summary
private final ServletRequestContext servletRequestContext
servletResponseback to summary
private final ServletResponse servletResponse
timeoutback to summary
private volatile long timeout
timeoutKeyback to summary
private volatile XnioExecutor.Key timeoutKey
timeoutTaskback to summary
private final AsyncContextImpl.TimeoutTask timeoutTask

Constructor Detail

AsyncContextImplback to summary
public AsyncContextImpl(final HttpServerExchange exchange, final ServletRequest servletRequest, final ServletResponse servletResponse, final ServletRequestContext servletRequestContext, boolean requestSupplied, final AsyncContextImpl previousAsyncContext)

Method Detail

addAsyncTaskback to summary
public synchronized void addAsyncTask(final Runnable runnable)

Adds a task to be run to the async context. These tasks are run one at a time, after the initial request is finished. If the request is dispatched before the initial request is complete then these tasks will not be run

This method is intended to be used to queue read and write tasks for async streams, to make sure that multiple threads do not end up working on the same exchange at once

Parameters
runnable:Runnable

The runnable

addListenerback to summary
public void addListener(final AsyncListener listener)

Implements jakarta.servlet.AsyncContext.addListener.

Doc from jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, results in an error, or a new asynchronous cycle is being initiated via one of the ServletRequest#startAsync methods.

AsyncListener instances will be notified in the order in which they were added.

If ServletRequest#startAsync(ServletRequest, ServletResponse) or ServletRequest#startAsync is called, the exact same request and response objects are available from the AsyncEvent when the AsyncListener is notified.

Parameters
listener:AsyncListener

the AsyncListener to be registered

Annotations
@Override
addListenerback to summary
public void addListener(final AsyncListener listener, final ServletRequest servletRequest, final ServletResponse servletResponse)

Implements jakarta.servlet.AsyncContext.addListener.

Doc from jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, results in an error, or a new asynchronous cycle is being initiated via one of the ServletRequest#startAsync methods.

AsyncListener instances will be notified in the order in which they were added.

The given ServletRequest and ServletResponse objects will be made available to the given AsyncListener via the getSuppliedRequest and getSuppliedResponse methods, respectively, of the AsyncEvent delivered to it. These objects should not be read from or written to, respectively, at the time the AsyncEvent is delivered, because additional wrapping may have occurred since the given AsyncListener was registered, but may be used in order to release any resources associated with them.

Parameters
listener:AsyncListener

the AsyncListener to be registered

servletRequest:ServletRequest

the ServletRequest that will be included in the AsyncEvent

servletResponse:ServletResponse

the ServletResponse that will be included in the AsyncEvent

Annotations
@Override
asyncExecutorback to summary
private Executor asyncExecutor()
completeback to summary
public synchronized void complete()

Implements jakarta.servlet.AsyncContext.complete.

Doc from jakarta.servlet.AsyncContext.complete.

Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext.

Any listeners of type AsyncListener that were registered with the ServletRequest for which this AsyncContext was created will be invoked at their onComplete method.

It is legal to call this method any time after a call to ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse), and before a call to one of the dispatch methods of this class. If this method is called before the container-initiated dispatch that called startAsync has returned to the container, then the call will not take effect (and any invocations of AsyncListener#onComplete(AsyncEvent) will be delayed) until after the container-initiated dispatch has returned to the container.

Annotations
@Override
completeInternalback to summary
public synchronized void completeInternal(boolean forceComplete)
createListenerback to summary
public <T extends AsyncListener> T createListener(final Class<T> clazz) throws ServletException

Implements jakarta.servlet.AsyncContext.createListener.

Doc from jakarta.servlet.AsyncContext.createListener.

Instantiates the given AsyncListener class.

The returned AsyncListener instance may be further customized before it is registered with this AsyncContext via a call to one of the addListener methods.

The given AsyncListener class must define a zero argument constructor, which is used to instantiate it.

This method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and CDI specifications for additional details about Managed Beans and resource injection.

This method supports any annotations applicable to AsyncListener.

Parameters
<T>
the class of the object to instantiate
clazz:Class<T>

the AsyncListener class to instantiate

Returns:T

the new AsyncListener instance

Annotations
@Override
Exceptions
ServletException:
if the given clazz fails to be instantiated
dispatchback to summary
public void dispatch()

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the servlet container.

If the asynchronous cycle was started with ServletRequest#startAsync(ServletRequest, ServletResponse), and the request passed is an instance of HttpServletRequest, then the dispatch is to the URI returned by jakarta.servlet.http.HttpServletRequest#getRequestURI. Otherwise, the dispatch is to the URI of the request when it was last dispatched by the container.

The following sequence illustrates how this will work:

// REQUEST dispatch to /url/A
AsyncContext ac = request.startAsync();
...
ac.dispatch(); // ASYNC dispatch to /url/A

// REQUEST to /url/A
// FORWARD dispatch to /url/B
request.getRequestDispatcher("/url/B").forward(request,response);
// Start async operation from within the target of the FORWARD
// dispatch
ac = request.startAsync();
...
ac.dispatch(); // ASYNC dispatch to /url/A

// REQUEST to /url/A
// FORWARD dispatch to /url/B
request.getRequestDispatcher("/url/B").forward(request,response);
// Start async operation from within the target of the FORWARD
// dispatch
ac = request.startAsync(request,response);
...
ac.dispatch(); // ASYNC dispatch to /url/B

This method returns immediately after passing the request and response objects to a container managed thread, on which the dispatch operation will be performed. If this method is called before the container-initiated dispatch that called startAsync has returned to the container, the dispatch operation will be delayed until after the container-initiated dispatch has returned to the container.

The dispatcher type of the request is set to DispatcherType.ASYNC. Unlike forward dispatches, the response buffer and headers will not be reset, and it is legal to dispatch even if the response has already been committed.

Control over the request and response is delegated to the dispatch target, and the response will be closed when the dispatch target has completed execution, unless ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse) are called.

Any errors or exceptions that may occur during the execution of this method must be caught and handled by the container, as follows:

  1. Invoke, at their onError method, all AsyncListener instances registered with the ServletRequest for which this AsyncContext was created, and make the caught Throwable available via AsyncEvent#getThrowable.
  2. If none of the listeners called complete or any of the dispatch methods, perform an error dispatch with a status code equal to HttpServletResponse.SC_INTERNAL_SERVER_ERROR, and make the above Throwable available as the value of the RequestDispatcher.ERROR_EXCEPTION request attribute.
  3. If no matching error page was found, or the error page did not call complete or any of the dispatch methods, call complete.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

Annotations
@Override
dispatchback to summary
public void dispatch(final String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path.

The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), within the scope of the ServletContext from which this AsyncContext was initialized.

All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

See dispatch() for additional details, including error handling.

Parameters
path:String

the path of the dispatch target, scoped to the ServletContext from which this AsyncContext was initialized

Annotations
@Override
dispatchback to summary
public void dispatch(final ServletContext context, final String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context.

The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), except that it is scoped to the given context.

All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

See dispatch() for additional details, including error handling.

Parameters
context:ServletContext

the ServletContext of the dispatch target

path:String

the path of the dispatch target, scoped to the given ServletContext

Annotations
@Override
dispatchAsyncRequestback to summary
private void dispatchAsyncRequest(final ServletDispatcher servletDispatcher, final ServletPathMatch pathInfo, final HttpServerExchange exchange)
doDispatchback to summary
private synchronized void doDispatch(final Runnable runnable)
getRequestback to summary
public ServletRequest getRequest()

Implements jakarta.servlet.AsyncContext.getRequest.

Doc from jakarta.servlet.AsyncContext.getRequest.

Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

Returns:ServletRequest

the request that was used to initialize this AsyncContext

Annotations
@Override
getResponseback to summary
public ServletResponse getResponse()

Implements jakarta.servlet.AsyncContext.getResponse.

Doc from jakarta.servlet.AsyncContext.getResponse.

Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

Returns:ServletResponse

the response that was used to initialize this AsyncContext

Annotations
@Override
getTimeoutback to summary
public long getTimeout()

Implements jakarta.servlet.AsyncContext.getTimeout.

Doc from jakarta.servlet.AsyncContext.getTimeout.

Gets the timeout (in milliseconds) for this AsyncContext.

This method returns the container's default timeout for asynchronous operations, or the timeout value passed to the most recent invocation of setTimeout.

A timeout value of zero or less indicates no timeout.

Returns:long

the timeout in milliseconds

Annotations
@Override
handleCompletedBeforeInitialRequestDoneback to summary
public void handleCompletedBeforeInitialRequestDone()
handleErrorback to summary
public void handleError(final Throwable error)
hasOriginalRequestAndResponseback to summary
public boolean hasOriginalRequestAndResponse()

Implements jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Doc from jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Checks if this AsyncContext was initialized with the original or application-wrapped request and response objects.

This information may be used by filters invoked in the outbound direction, after a request was put into asynchronous mode, to determine whether any request and/or response wrappers that they added during their inbound invocation need to be preserved for the duration of the asynchronous operation, or may be released.

Returns:boolean

true if this AsyncContext was initialized with the original request and response objects by calling ServletRequest#startAsync(), or if it was initialized by calling ServletRequest#startAsync(ServletRequest, ServletResponse), and neither the ServletRequest nor ServletResponse arguments carried any application-provided wrappers; false otherwise

Annotations
@Override
initialRequestDoneback to summary
public synchronized void initialRequestDone()

Called by the container when the initial request is finished. If this request has a dispatch or complete call pending then this will be started.

initialRequestFailedback to summary
public synchronized void initialRequestFailed()
isCompletedBeforeInitialRequestDoneback to summary
public boolean isCompletedBeforeInitialRequestDone()
isDispatchedback to summary
public boolean isDispatched()
isInitialRequestDoneback to summary
public boolean isInitialRequestDone()
onAsyncCompleteback to summary
private void onAsyncComplete()
onAsyncCompleteAndRespondback to summary
private void onAsyncCompleteAndRespond()
onAsyncErrorback to summary
private void onAsyncError(final Throwable t)
onAsyncStartback to summary
private void onAsyncStart(final AsyncContext newAsyncContext)
onAsyncTimeoutback to summary
private void onAsyncTimeout()
processAsyncTaskback to summary
private synchronized void processAsyncTask()
setTimeoutback to summary
public synchronized void setTimeout(final long timeout)

Implements jakarta.servlet.AsyncContext.setTimeout.

Doc from jakarta.servlet.AsyncContext.setTimeout.

Sets the timeout (in milliseconds) for this AsyncContext.

The timeout applies to this AsyncContext once the container-initiated dispatch during which one of the ServletRequest#startAsync methods was called has returned to the container.

The timeout will expire if neither the complete method nor any of the dispatch methods are called. A timeout value of zero or less indicates no timeout.

If setTimeout is not called, then the container's default timeout, which is available via a call to getTimeout, will apply.

The default value is 30000 ms.

Parameters
timeout:long

the timeout in milliseconds

Annotations
@Override
setupRequestContextback to summary
private void setupRequestContext(final boolean setupRequired)
startback to summary
public void start(final Runnable run)

Implements jakarta.servlet.AsyncContext.start.

Doc from jakarta.servlet.AsyncContext.start.

Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable. The container may propagate appropriate contextual information to the Runnable.

Parameters
run:Runnable

the asynchronous handler

Annotations
@Override
tearDownRequestContextback to summary
private void tearDownRequestContext(final boolean setupRequired)
updateTimeoutback to summary
public void updateTimeout()
io.undertow.servlet.spec back to summary

private final Class AsyncContextImpl.BoundAsyncListener

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final AsyncListener
pack-priv final ServletRequest
pack-priv final ServletResponse

Constructor Summary

AccessConstructor and Description
private
BoundAsyncListener(final AsyncListener asyncListener, final ServletRequest servletRequest, final ServletResponse servletResponse)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

asyncListenerback to summary
pack-priv final AsyncListener asyncListener
servletRequestback to summary
pack-priv final ServletRequest servletRequest
servletResponseback to summary
pack-priv final ServletResponse servletResponse

Constructor Detail

BoundAsyncListenerback to summary
private BoundAsyncListener(final AsyncListener asyncListener, final ServletRequest servletRequest, final ServletResponse servletResponse)
io.undertow.servlet.spec back to summary

private Class AsyncContextImpl.TaskDispatchRunnable

extends Object
implements Runnable
Class Inheritance
  • java.lang.Object
  • io.undertow.servlet.spec.AsyncContextImpl.TaskDispatchRunnable
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final Runnable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

taskback to summary
private final Runnable task

Constructor Detail

TaskDispatchRunnableback to summary
private TaskDispatchRunnable(final Runnable task)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
io.undertow.servlet.spec back to summary

private final Class AsyncContextImpl.TimeoutTask

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TimeoutTaskback to summary
private TimeoutTask()

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override