Interface ManagedResultSet

  • All Superinterfaces:
    AutoCloseable, ResultSet, Wrapper

    public interface ManagedResultSet
    extends ResultSet
    A managed result set extends a ResultSet by the means to handle remote iterator. This is closely coupled to a transaction managed by a TxManager.
    • Method Detail

      • registerRemoteIterator

        void registerRemoteIterator​(RemoteIterator<?> iterator,
                                    long aliveTime)
        Registers the designated remote iterator to close it after the designated alive time has elapsed. The iterator can be safely closed beforehand and signal this via remoteIteratorClosed(RemoteIterator).
        Parameters:
        iterator - The iterator to close after its alive time has elapsed.
        aliveTime - The time in milliseconds the designated iterator can be active without being forced to be closed.
      • remoteIteratorClosed

        void remoteIteratorClosed​(RemoteIterator<?> iterator)
        Signals the closing of the remote iterator which may allow to close the corresponding transaction.
        Parameters:
        iterator - The remote iterator that has been closed.