T
- the type of the result of the Operation
Operation<T>
, PrimitiveOperation<T>
ParameterizedRowCountOperation<T>
public interface RowCountOperation<T> extends Operation<T>
Operation
that returns a count.ParameterizedRowCountOperation
Modifier and Type | Method | Description |
---|---|---|
RowCountOperation<T> |
apply(java.util.function.Function<Result.RowCount,? extends T> function) |
Sets the result processor for this
Operation . |
RowCountOperation<T> |
onError(java.util.function.Consumer<java.lang.Throwable> handler) |
Provides an error handler for this
Operation . |
RowCountOperation<T> |
timeout(java.time.Duration minTime) |
The minimum time before this
Operation might be canceled
automatically. |
submit
RowCountOperation<T> apply(java.util.function.Function<Result.RowCount,? extends T> function)
Operation
.function
- processes the count produced by executing this
Operation
and returns the resultRowCountOperation
java.lang.IllegalStateException
- if this method has been called previouslyRowCountOperation<T> onError(java.util.function.Consumer<java.lang.Throwable> handler)
Operation
RowCountOperation<T> timeout(java.time.Duration minTime)
Operation
Operation
might 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 minTime
after the beginning of execution.
Some time at least minTime
after the beginning of execution,
an attempt will be made to cancel the Operation
if it has not yet
completed. Implementations are encouraged to attempt to cancel within a
reasonable time, though what is reasonable is implementation dependent.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 EA5