Package oracle.kv

# Interface ExecutionSubscription

All Superinterfaces:
  `IterationSubscription`, `Subscription`

public interface ExecutionSubscription extends IterationSubscription
A subinterface of `Subscription` implemented by subscriptions supplied when a `Subscriber` subscribes to a `Publisher` associated with the asynchronous execution of a query.

Since:
  19.5
See Also:
  - `KVStore.executeAsync(java.lang.String, oracle.kv.query.ExecuteOptions)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `RecordDef`
  `getResultDef()`
  Returns the definition of the result of this statement if the statement is a query, otherwise null.
  `Statement`
  `getStatement()`
  Returns the statement object for the associated statement execution.

  ### Methods inherited from interface oracle.kv.IterationSubscription

  `getPartitionMetrics, getShardMetrics`

  ### Methods inherited from interface org.reactivestreams.Subscription

  `cancel, request`

- ## Method Details

  - ### getStatement

    Statement getStatement()
    Returns the statement object for the associated statement execution.
    Returns:
      the statement

  - ### getResultDef

    RecordDef getResultDef()
    Returns the definition of the result of this statement if the statement is a query, otherwise null.
    Returns:
      the definition of the result or `null`
    Since:
      22.2