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.
    Author:
    Ulrich Kreher
    • Method Detail

      • registerRemoteIterator

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

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