com.groupdocs.search

Class Cancellation



  • public class Cancellation
    extends Object

    Represents an object for requesting cancellation of an operation.

    • Constructor Summary

      Constructors 
      Constructor and Description
      Cancellation()
      Initializes a new instance of the Cancellation class.
    • 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.

        Value: 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 the search will be cancelled.