public static class SpreadsheetWebApp.SecurityContextDispatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.BlockingQueue<java.lang.Runnable> |
queue
Stores runnable instances to be executed asynchronously.
|
private AssociatedThread |
thread
The associated thread that allows execution of runnables asynchronously.
|
| Constructor and Description |
|---|
SecurityContextDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable run)
Executes the supplied runnable asynchronously in a thread associated with the security context.
|
private void |
run()
Executes the runnables in the queue.
|
void |
start()
Starts the thread associated with the current security context.
|
void |
stop()
Stops the associated thread.
|
private AssociatedThread thread
private java.util.concurrent.BlockingQueue<java.lang.Runnable> queue
public void start()
public void stop()
public void execute(java.lang.Runnable run)
run - The runnable object representing the execution to be added to the queue.private void run()