public class ProcessStreamResult
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding |
protected boolean |
finished
Flag to find out if the work was finished
successfully without being interrupted
in between because of a timeout setting
|
protected java.io.InputStream |
in |
protected boolean |
interrupted
Flag to keep state of whether the myThread has timed out.
|
protected java.io.IOException |
ioe |
protected java.lang.Thread |
myThread |
protected java.io.OutputStreamWriter |
outStream |
protected long |
startTime |
protected int |
timeout
time in minutes for myThread to timeout in case it
has not finished its work before that.
|
Constructor and Description |
---|
ProcessStreamResult(java.io.InputStream in,
java.io.BufferedOutputStream bos,
java.lang.String timemin) |
ProcessStreamResult(java.io.InputStream in,
java.io.BufferedOutputStream bos,
java.lang.String timemin,
java.lang.String inEncoding,
java.lang.String outEncoding) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
boolean |
Wait()
Wait till the myThread has finished its work or incase a timeout was set on this
object, then to set a flag to indicate the myThread to leave at the end of the
timeout period.
|
protected java.io.InputStream in
protected java.io.OutputStreamWriter outStream
protected java.lang.String encoding
protected boolean finished
protected java.io.IOException ioe
protected java.lang.Thread myThread
protected long startTime
protected boolean interrupted
protected int timeout
public ProcessStreamResult(java.io.InputStream in, java.io.BufferedOutputStream bos, java.lang.String timemin) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public ProcessStreamResult(java.io.InputStream in, java.io.BufferedOutputStream bos, java.lang.String timemin, java.lang.String inEncoding, java.lang.String outEncoding) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void run()
run
in interface java.lang.Runnable
public boolean Wait() throws java.io.IOException
java.io.IOException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.