Class XWikiDocumentIndexingTask


  • @Unstable
    public class XWikiDocumentIndexingTask
    extends Object
    Hold the information about a queued task.
    Since:
    14.1RC1
    Version:
    $Id: aa51ae924f64b92385cfd532491e85e0ccf048e1 $
    • Constructor Detail

      • XWikiDocumentIndexingTask

        public XWikiDocumentIndexingTask()
    • Method Detail

      • getId

        @Unstable
        public long getId()
        Getter for id.
        Returns:
        the synthetic id of this deleted attachment. Uniquely identifies a link
        Since:
        14.3RC1
      • getDocId

        @Unstable
        public long getDocId()
        Returns:
        the document id
        Since:
        14.3RC1
      • setDocId

        @Unstable
        public void setDocId​(long docId)
        Parameters:
        docId - the id of the document to be processed
        Since:
        14.3RC1
      • getVersion

        @Unstable
        public String getVersion()
        Returns:
        the version to of the document to be processed
        Since:
        14.3RC1
      • setVersion

        @Unstable
        public void setVersion​(String version)
        Parameters:
        version - the version of the document to be processed
        Since:
        14.3RC1
      • getType

        @Unstable
        public String getType()
        Returns:
        the type of the task to do on the document
        Since:
        14.3RC1
      • setType

        @Unstable
        public void setType​(String type)
        Parameters:
        type - the type of the task to do on the document
        Since:
        14.3RC1
      • getInstanceId

        @Unstable
        public String getInstanceId()
        Returns:
        the identifier of the instance that queued the task
        Since:
        14.3RC1
      • setInstanceId

        @Unstable
        public void setInstanceId​(String instanceId)
        Parameters:
        instanceId - the identifier of the instance that queued the task
        Since:
        14.3RC1
      • getTimestamp

        public Date getTimestamp()
        Returns:
        the timestamp of the insertion of the task in the queue
      • setTimestamp

        public void setTimestamp​(Date timestamp)
        Parameters:
        timestamp - the timestamp of the insertion of the task in the queue
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object