T- the type of the result of the
public interface Operation<T>
Operationis created by an
OperationGroup, configured and submitted. If not submitted it is not executed. If submitted it is possibly executed according to the attributes of the
OperationGroupthat created it. Note: A
OperationGroupand so can create
|Modifier and Type||Method||Description|
Provides an error handler for this
The minimum time before this
Operation. If execution of this
Operationresults in an error, before the Operation is completed, the handler is called with the
Throwableas the argument.
Operationmight be canceled automatically. The default value is forever. The time is counted from the beginning of Operation execution. The Operation will not be canceled before
minTimeafter the beginning of execution. Some time at least
minTimeafter the beginning of execution, an attempt will be made to cancel the
Operationif it has not yet completed. Implementations are encouraged to attempt to cancel within a reasonable time, though what is reasonable is implementation dependent.
minTime- minimum time to wait before attempting to cancel
java.lang.IllegalArgumentException- if minTime <= 0 seconds
java.lang.IllegalStateException- if this method is called more than once on this operation
Operationto the tail of the
Operationcollection of the
Connectionthat created this
Operationcan be submitted only once. Once an
Operationis submitted it is immutable. Any attempt to modify a submitted
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA