private static class EmbeddedWebAppHandler.AuthWorker
extends java.lang.Object
implements java.lang.Runnable
This FWD client must be a process account and configured to authenticate via a certificate, with the certificate details configured in:
embeddedWebApp/authAlias
for the process alias.embeddedWebApp/authKeyStore
for the store with the certificate.embeddedWebApp/authKeyStorePassword
for the store password.The key store file path will be either a full path or a path relative to the folder where the FWD server is started.
Modifier and Type | Field and Description |
---|---|
private boolean |
running
Flag indicating if the task worker is running.
|
private java.util.LinkedList<java.lang.Runnable> |
tasks
The tasks to be ran.
|
Modifier | Constructor and Description |
---|---|
private |
AuthWorker() |
Modifier and Type | Method and Description |
---|---|
void |
addWork(java.lang.Runnable work)
Post a new work to the
queue . |
void |
run()
The worker loop - waits for tasks to be posted in
queue . |
void |
start()
Start this worker - it will spawn a thread and create an in-JVM FWD context for it.
|
void |
stop()
Stop the worker thread.
|
private volatile boolean running
private java.util.LinkedList<java.lang.Runnable> tasks
public void start()
public void addWork(java.lang.Runnable work)
queue
.work
- The work to execute.public void stop()
public void run()
queue
.run
in interface java.lang.Runnable