|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsynchronousScanState
External view of the current state of an asynchronous
Scanner
.
Method Summary | |
---|---|
Exception |
getException()
Get the exception that caused abnormal termination. |
Thread |
getThread()
Get the thread in which the scanner is running. |
boolean |
isTerminated()
False unil the scanner terminates. |
void |
requestTermination()
Request the scanner to stop scanning. |
void |
waitForTermination()
Wait indefinitely for the Scanner
to terminate . |
void |
waitForTermination(long timeout)
Wait a specified interval (indefinitely if the interval is zero) for the Scanner
to terminate . |
Method Detail |
---|
boolean isTerminated()
False unil the scanner terminates.
Exception getException()
Get the exception that caused abnormal termination.
Null while scanner is running, remains null after a normal termination.
Thread getThread()
Get the thread in which the scanner is running.
void requestTermination()
Request the scanner to stop scanning.
Scanner will finish processing any input that has been matched. Unmatched input will not be processed.
void waitForTermination() throws InterruptedException
Wait indefinitely for the
Scanner
to terminate
.
InterruptedException
- - if the scanner thread is interrupted
before this method returns.void waitForTermination(long timeout) throws InterruptedException
Wait a specified interval (indefinitely if the interval is zero) for the
Scanner
to terminate
.
timeout
- the approximate number of milliseconds to wait, zero
represents an infinite wait
IllegalArgumentException
- - if timeout
is negative.
InterruptedException
- - if the scanner thread is interrupted
before this method returns.
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |