public class DefaultJavaScriptExecutor extends Object implements JavaScriptExecutor
Constructor and Description |
---|
DefaultJavaScriptExecutor(WebClient webClient)
Creates an EventLoop for the webClient.
|
Modifier and Type | Method and Description |
---|---|
void |
addWindow(WebWindow newWindow)
Register a window with the eventLoop.
|
protected JavaScriptJobManager |
getJobManagerWithEarliestJob()
Returns the JobExecutor corresponding to the earliest job.
|
protected String |
getThreadName()
Defines the thread name; overload if needed.
|
void |
run()
Runs the eventLoop.
|
void |
shutdown()
Notes that this thread has been shutdown.
|
protected void |
startThreadIfNeeded()
Starts the eventLoopThread_.
|
public DefaultJavaScriptExecutor(WebClient webClient)
webClient
- the provided webClientprotected void startThreadIfNeeded()
protected String getThreadName()
protected JavaScriptJobManager getJobManagerWithEarliestJob()
public void addWindow(WebWindow newWindow)
addWindow
in interface JavaScriptExecutor
newWindow
- the new web windowpublic void shutdown()
shutdown
in interface JavaScriptExecutor
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.