Enum AsyncResultSet.CallbackResponse

    • Enum Constant Detail

      • CONTINUE

        public static final AsyncResultSet.CallbackResponse CONTINUE
        Tell the cursor to continue issuing callbacks when data is available. This is the standard "I'm ready for more" response. If cursor is not completely drained of all ready results the callback will be called again immediately.
      • DONE

        public static final AsyncResultSet.CallbackResponse DONE
        Tell the cursor you are done receiving results, even if there are more results sitting in the buffer. Once you return DONE, you will receive no further callbacks.

        Approximately equivalent to calling RowCursor#cancel(), and then returning PAUSE, but more clear, immediate, and idiomatic.

        It is legal to commit a transaction that owns this read before actually returning DONE.

    • Method Detail

      • values

        public static AsyncResultSet.CallbackResponse[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AsyncResultSet.CallbackResponse c : AsyncResultSet.CallbackResponse.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AsyncResultSet.CallbackResponse valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null