src/jdk.incubator.adba/share/classes/jdk/incubator/sql2/MultiOperation.java
author lancea
Sat, 20 Oct 2018 08:39:46 -0400
branchJDK-8188051-branch
changeset 56998 8eb32e5b1a9f
parent 56997 c9cbac2979fb
permissions -rwxr-xr-x
JDK-8188051-branch MultiOperation javadoc update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     1
/*
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     2
 * Copyright (c)  2017, 2018, Oracle and/or its affiliates. All rights reserved.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     4
 * 
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    10
 * 
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    15
 * accompanied this code).
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    16
 * 
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    20
 * 
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    23
 * questions.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    24
 */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    25
package jdk.incubator.sql2;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    26
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    27
import java.time.Duration;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    28
import java.util.concurrent.CompletionStage;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    29
import java.util.function.BiConsumer;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    30
import java.util.function.Consumer;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    31
import java.util.function.Function;
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    32
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    33
/**
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    34
 * A multi-operation is an {@link Operation} that returns one or more results in
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    35
 * addition to the out result defined by the {@link Operation}. Each result is
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    36
 * processed by an {@link Operation}. The {@link Operation}s can be created by
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    37
 * calling
56998
8eb32e5b1a9f JDK-8188051-branch MultiOperation javadoc update
lancea
parents: 56997
diff changeset
    38
 * {@link MultiOperation#rowOperation}, 
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    39
 * or {@link MultiOperation#rowCountOperation} if the kind of results is known.
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    40
 * These results are processed in the order the {@link Operation}s are
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    41
 * submitted. Any results not processed by an explicit {@link Operation} is
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    42
 * processed by calling the appropriate handler specified by
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    43
 * {@link MultiOperation#onRows} or {@link MultiOperation#onCount}. If any
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    44
 * result is an error that error is processed by calling the handler specified
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    45
 * by {@link Operation#onError} of the corresponding {@link Operation}. If the
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    46
 * appropriate handler is not specified that result is ignored, including
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    47
 * errors.
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    48
 *
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    49
 * ISSUE: Should this have a collector?
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    50
 *
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    51
 * @param <T> The type of the result of this {@link Operation}
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    52
 */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    53
public interface MultiOperation<T> extends OutOperation<T> {
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    54
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    55
  /**
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    56
   * Returns a {@link RowOperation} to process a row sequence result. The
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    57
   * {@link Operation}s are executed in the order they are submitted. If a
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    58
   * result is of the wrong type for the next submitted {@link Operation} the
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    59
   * {@code MultiOperation} is completed with {@link IllegalStateException}.
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    60
   *
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    61
   * @return a {@link RowOperation} that is part of this {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    62
   */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    63
  public RowOperation<T> rowOperation();
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    64
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    65
  /**
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    66
   * Returns a {@link RowPublisherOperation} to process a row sequence result.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    67
   * The {@link Operation}s are executed in the order they are submitted. If a
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    68
   * result is of the wrong type for the next submitted {@link Operation} the
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    69
   * {@code MultiOperation} is completed with {@link IllegalStateException}.
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    70
   *
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    71
   * @return a {@link RowPublisherOperation} that is part of this
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    72
   * {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    73
   */
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    74
  public RowPublisherOperation<T> rowPublisherOperation();
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    75
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    76
  /**
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    77
   * Returns a {@link RowCountOperation} to process a count result. The
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    78
   * {@link Operation}s are executed in the order they are submitted. If a
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    79
   * result is of the wrong type for the next submitted Operation the
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    80
   * {@code MultiOperation} is completed with {@link IllegalStateException}.
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    81
   *
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    82
   * @return a {@link RowCountOperation} that is part of this
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
    83
   * {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    84
   */
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    85
  public RowCountOperation<T> rowCountOperation();
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    86
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    87
  /**
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    88
   * Provides a handler for trailing count results. The provided handler is
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    89
   * called for each count result not processed by RowCountOperation. When
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    90
   * called the first argument is the number of results that preceeded the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    91
   * current result. The second argument is a {@link RowCountOperation} that
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    92
   * will process the current result. This {@link RowCountOperation} has not
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    93
   * been configured in any way nor has it been submitted. The handler
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    94
   * configures the {@link RowCountOperation} and submits it. The count result
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    95
   * is processed when the {@link RowCountOperation} is submitted. If the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    96
   * {@link RowCountOperation} is not submitted when the handler returns the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    97
   * count result is ignored.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
    98
   *
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
    99
   * If this method is not called any trailing count results are ignored.
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   100
   *
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   101
   * @param handler not null
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   102
   * @return this {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   103
   * @throws IllegalStateException if this method was called previously
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   104
   */
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   105
  public MultiOperation<T> onCount(BiConsumer<Integer, RowCountOperation<T>> handler);
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   106
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   107
  /**
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   108
   * Provides a handler for trailing row sequence results. The provided handler
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   109
   * is called for each row sequence result not processed by a RowOperation.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   110
   * When called the first argument is the number of results that preceeded the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   111
   * current result. The second argument is a {@link RowOperation} that will
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   112
   * process the current result. This {@link RowOperation} has not been
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   113
   * configured in any way nor has it been submitted. The handler configures the
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   114
   * {@link RowOperation} and submits it. The row sequence result is processed
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   115
   * when the {@link RowOperation} is submitted. If the {@link RowOperation} is
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   116
   * not submitted when the handler returns, the row sequence result is ignored.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   117
   *
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   118
   * If this method is not called any trailing row sequence results are ignored.
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   119
   *
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   120
   * ISSUE: Should there be a version of this method that provides
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   121
   * RowProcessorOperations? If so only one of that method or this one can be
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   122
   * called.
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   123
   *
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   124
   * @param handler
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   125
   * @return This {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   126
   * @throws IllegalStateException if this method was called previously
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   127
   */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   128
  public MultiOperation<T> onRows(BiConsumer<Integer, RowOperation<T>> handler);
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   129
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   130
  /**
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   131
   * Provides an error handler for this {@link Operation}. The provided handler
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   132
   * is called for each error that occurs. When called the first argument is the
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   133
   * number of results, including errors, that preceeded the current error. The
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   134
   * second argument is a {@link Throwable} corresponding to the error. When the
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   135
   * handler returns processing of the {@code MultiOperation} results continues. Only
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   136
   * one onError method may be called.
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   137
   *
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   138
   * @param handler a BiConsumer that handles an error
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   139
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   140
   * @throws IllegalStateException if this method or
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   141
   * {@link MultiOperation#onError(java.util.function.Consumer)} was called
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   142
   * previously
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   143
   */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   144
  public MultiOperation<T> onError(BiConsumer<Integer, Throwable> handler);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   145
  // Covariant overrides
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   146
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   147
  /**
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   148
   * This handler is called if the execution fails completely. If the execution
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   149
   * returns any individual results, even if any or all of those results are
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   150
   * errors, this handler is not called.
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   151
   *
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   152
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   153
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   154
   * @return this {@code MultiOperation}
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   155
   */
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   156
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   157
  public MultiOperation<T> onError(Consumer<Throwable> handler);
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   158
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   159
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   160
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   161
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   162
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   163
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   164
  @Override
56797
fb523d4d9185 JDK-8188051-branch updates
lancea
parents: 56475
diff changeset
   165
  public MultiOperation<T> apply(Function<Result.OutColumn, ? extends T> processor);
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   166
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   167
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   168
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   169
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   170
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   171
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   172
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   173
  public MultiOperation<T> outParameter(String id, SqlType type);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   174
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   175
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   176
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   177
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   178
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   179
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   180
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   181
  public MultiOperation<T> set(String id, Object value, SqlType type);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   182
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   183
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   184
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   185
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   186
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   187
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   188
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   189
  public MultiOperation<T> set(String id, Object value);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   190
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   191
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   192
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   193
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   194
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   195
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   196
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   197
  public MultiOperation<T> set(String id, CompletionStage<?> source, SqlType type);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   198
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   199
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   200
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   201
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   202
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   203
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   204
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   205
  public MultiOperation<T> set(String id, CompletionStage<?> source);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   206
56997
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   207
  /**
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   208
   * {@inheritDoc}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   209
   *
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   210
   * @return this {@code MultiOperation}
c9cbac2979fb JDK-8188051-branch October 20 ABDA updates
lancea
parents: 56797
diff changeset
   211
   */
56475
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   212
  @Override
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   213
  public MultiOperation<T> timeout(Duration minTime);
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   214
e700edfac7ad JDK-8188051-branch: Updates to sync with AOJ
lancea
parents:
diff changeset
   215
}