com.groupdocs.search.common

Class Cancellation

    • Constructor Detail

      • Cancellation

        public Cancellation()

        Initializes a new instance of the Cancellation class.

    • Method Detail

      • finalize

        protected void finalize()
                         throws Throwable

        Finalizes an instance of the Cancellation class.

        Overrides:
        finalize in class Object
        Throws:
        Throwable
      • isCancelled

        public final boolean isCancelled()

        Gets a value indicating that cancellation has been requested.

        Returns:
        A value indicating that cancellation has been requested.
      • cancel

        public final void cancel()

        Makes a request for cancellation.

      • cancelAfter

        public final void cancelAfter(int milliseconds)

        Makes a request for cancellation after the expiration of specified number of milliseconds.

        Parameters:
        milliseconds - The number of milliseconds after which an operation will be cancelled.