Class AbstractNodeTask

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    NodeRefresher

    public abstract class AbstractNodeTask
    extends Object
    implements Runnable
    This is an abstract class that is extended to search for nodes or to refresh the contents of the nodes.
    • Constructor Detail

      • AbstractNodeTask

        protected AbstractNodeTask​(BasicNode node)
        The constructor of the node searcher.
        Parameters:
        node - the node to be searched/refreshed.
    • Method Detail

      • getNode

        public BasicNode getNode()
        Returns the node that is being searched/refreshed.
        Returns:
        the node that is being searched/refreshed.
      • cancel

        public void cancel()
        Cancels the searching/refreshing process.
      • isCanceled

        public boolean isCanceled()
        Tells whether the search/refresh operation is cancelled.
        Returns:
        true if the operation is cancelled and false otherwise.
      • run

        public abstract void run()
        The method that is called to refresh/search the node.
        Specified by:
        run in interface Runnable