private class LockTableVtiTest.AsyncThread
extends java.lang.Object
implements java.lang.Runnable
AsyncTask
object.Modifier and Type | Field and Description |
---|---|
private java.lang.Exception |
error |
private LockTableVtiTest.AsyncTask |
task |
private java.lang.Thread |
thread |
Constructor and Description |
---|
AsyncThread(LockTableVtiTest.AsyncTask task)
Create an
AsyncThread object and starts a thread executing
the task. |
Modifier and Type | Method and Description |
---|---|
void |
run()
Open a database connection and perform the task.
|
(package private) void |
waitFor()
Wait for the thread to complete.
|
private final java.lang.Thread thread
private final LockTableVtiTest.AsyncTask task
private java.lang.Exception error
public AsyncThread(LockTableVtiTest.AsyncTask task)
AsyncThread
object and starts a thread executing
the task. Also put the AsyncThread
object in the list of
threads in the parent object to make sure the thread is waited for
and its errors detected in the tearDown()
method.task
- the task to performpublic void run()
waitFor()
method is called.run
in interface java.lang.Runnable
void waitFor() throws java.lang.Exception
java.lang.Exception
- if an error happened while performing the taskApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.