src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/ArrayRowCountOperation.java
author lancea
Mon, 09 Jul 2018 15:09:06 -0400
branchJDK-8188051-branch
changeset 56824 62e92191354d
parent 56797 fb523d4d9185
child 56997 c9cbac2979fb
permissions -rw-r--r--
JDK-8188051-branch latest updates
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     1
/*
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     2
 * Copyright (c)  2017, 2018, Oracle and/or its affiliates. All rights reserved.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     4
 *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    10
 *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    15
 * accompanied this code).
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    16
 *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    20
 *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    23
 * questions.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    24
 */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    25
package jdk.incubator.sql2;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    26
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    27
import java.time.Duration;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    28
import java.util.List;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    29
import java.util.concurrent.CompletionStage;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    30
import java.util.function.Consumer;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    31
import java.util.stream.Collector;
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    32
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    33
/**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    34
 * A database operation that returns a count that is executed multiple times
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    35
 * with multiple sets of parameter values in one database operation. The
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    36
 * parameters are submitted to the database in the same order as in the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    37
 * sequences passed to the set methods. The count results are passed to the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    38
 * collector in the same order they are produced by the database. The
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    39
 * value of the Operation is the final result produced by the collector.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    40
 *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    41
 * @param <T> the type of the result of collecting the counts
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    42
 */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    43
public interface ArrayRowCountOperation<T> extends Operation<T> {
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    44
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    45
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    46
   * Set a sequence of parameter values. The value is captured and should not be
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    47
   * modified before the {@link Operation} is completed.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    48
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    49
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    50
   * the values cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    51
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    52
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    53
   * @param values the sequence of values the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    54
   * @param type the SQL type of the values to send to the database
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    55
   * @return this Operation
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    56
   * @throws IllegalArgumentException if the length of values is not the same as
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    57
   * the length of the previously set parameter sequences or if the same id was
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    58
   * passed in a previous call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    59
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    60
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    61
  public ArrayRowCountOperation<T> set(String id, List<?> values, SqlType type);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    62
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    63
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    64
   * Set a sequence of parameter values. Use a default SQL type determined by
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    65
   * the type of the value argument. The value is captured and should not be
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    66
   * modified before the {@link Operation} is completed.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    67
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    68
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    69
   * the values cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    70
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    71
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    72
   * @param values the value the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    73
   * @return this {@link Operation}
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    74
   * @throws IllegalArgumentException if the length of value is not the same as
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    75
   * the length of the previously set parameter sequences or if the same id was
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    76
   * passed in a previous call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    77
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    78
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    79
  public ArrayRowCountOperation<T> set(String id, List<?> values);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    80
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    81
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    82
   * Set a sequence of parameter values. The first parameter is captured and
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    83
   * should not be modified before the {@link Operation} is completed.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    84
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    85
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    86
   * the values cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    87
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    88
   * @param <S> the Java type of the individual parameter values
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    89
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    90
   * @param values the value the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    91
   * @param type the SQL type of the value to send to the database
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    92
   * @return this Operation
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    93
   * @throws IllegalArgumentException if the length of value is not the same as
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    94
   * the length of the previously set parameter sequences or if the same id was
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    95
   * passed in a previous call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    96
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    97
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    98
  public <S> ArrayRowCountOperation<T> set(String id, S[] values, SqlType type);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
    99
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   100
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   101
   * Set a sequence of parameter values. Use a default SQL type determined by
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   102
   * the type of the value argument. The parameter is captured and should not be
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   103
   * modified before the {@link Operation} is completed.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   104
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   105
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   106
   * the values cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   107
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   108
   * @param <S> the Java type of the individual parameter values
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   109
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   110
   * @param values the value the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   111
   * @return this Operation
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   112
   * @throws IllegalArgumentException if the length of value is not the same as
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   113
   * the length of the previously set parameter sequences or if the same id was
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   114
   * passed in a previous call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   115
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   116
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   117
  public <S> ArrayRowCountOperation<T> set(String id, S[] values);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   118
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   119
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   120
   * Provide a source for a sequence of parameter values.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   121
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   122
   * This Operation is not executed until source is completed normally. If
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   123
   * source completes exceptionally this Operation completes exceptionally with
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   124
   * an IllegealArgumentException with the source's exception as the cause.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   125
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   126
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   127
   * the values of the source cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   128
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   129
   * If the length of the value of source is not the same as the length of all
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   130
   * other parameter sequences this Operation is completed exceptionally with
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   131
   * IllegalArgumentException.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   132
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   133
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   134
   * @param source supplies the values the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   135
   * @param type the SQL type of the value to send to the database
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   136
   * @return this Operation
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   137
   * @throws IllegalArgumentException if the same id was passed in a previous
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   138
   * call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   139
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   140
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   141
  public ArrayRowCountOperation<T> set(String id, CompletionStage<?> source, SqlType type);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   142
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   143
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   144
   * Provide a source for a sequence of parameter values. Use a default SQL type
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   145
   * determined by the element type of the value of the source.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   146
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   147
   * This Operation is not executed until source is completed normally. If
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   148
   * source completes exceptionally this Operation completes exceptionally with
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   149
   * an IllegealArgumentException with the source's exception as the cause.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   150
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   151
   * The Operation is completed exceptionally with ClassCastException if any of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   152
   * the values of the source cannot be converted to the specified SQL type.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   153
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   154
   * If the length of the value of source is not the same as the length of all
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   155
   * other parameter sequences this Operation is completed exceptionally with
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   156
   * IllegalArgumentException.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   157
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   158
   * @param id the identifier of the parameter marker to be set
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   159
   * @param source supplies the values the parameter is to be set to
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   160
   * @return this {@link Operation}
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   161
   * @throws IllegalArgumentException if the same id was passed in a previous
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   162
   * call.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   163
   * @throws IllegalStateException if the {@link Operation} has been submitted
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   164
   */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   165
  public ArrayRowCountOperation<T> set(String id, CompletionStage<?> source);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   166
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   167
  /**
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   168
   * Provides a {@link Collector} to reduce the sequence of Counts.The result of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   169
   * the {@link Operation} is the result of calling finisher on the final
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   170
   * accumulated result. If the {@link Collector} is
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   171
   * {@link Collector.Characteristics#UNORDERED} counts may be accumulated out of
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   172
   * order. If the {@link Collector} is
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   173
   * {@link Collector.Characteristics#CONCURRENT} then the sequence of counts may be
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   174
   * split into subsequences that are reduced separately and then combined.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   175
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   176
   * @param <A> the type of the accumulator
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   177
   * @param <S> the type of the final result
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   178
   * @param c the Collector. Not null. 
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   179
   * @return This ArrayRowCountOperation
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   180
   * @throws IllegalStateException if this method had been called previously or
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   181
   * this Operation has been submitted.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   182
  */
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   183
  public <A, S extends T> ArrayRowCountOperation<T> collect(Collector<? super Result.RowCount, A, S> c);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   184
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   185
  @Override
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   186
  public ArrayRowCountOperation<T> onError(Consumer<Throwable> handler);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   187
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   188
  @Override
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   189
  public ArrayRowCountOperation<T> timeout(Duration minTime);
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   190
fb523d4d9185 JDK-8188051-branch updates
lancea
parents:
diff changeset
   191
}