public class TimeoutListener extends java.lang.Object implements ProgressEventListener
An implementation of a ProgressEventListener
that automatically terminates the
conversion after the specified timeout in seconds.
It is not guaranteed that the conversion will terminate exactly when the timeout is reached. Depending on the document it might take a longer until the termination is triggered.
The example below shows how to automatically terminate conversions after 15 seconds:
Configuration
config = new Configuration
();
config.getProgressEventListeners().add(new TimeoutListener(15));
Constructor and Description |
---|
TimeoutListener(int timeout) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
progress
This doc was generated on 2018-08-13. Copyright © 2002-2018 RealObjects GmbH. All Rights Reserved.