Interface ReplicationQueue


  • public interface ReplicationQueue
    ReplicationQueue...
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the name of this queue
        Returns:
        the name of this queue
      • entries

        java.util.List<ReplicationQueue.Entry> entries()
        Returns an unmodifiable list of all entries in this queue.
        Returns:
        list of entries
      • entries

        java.util.List<ReplicationQueue.Entry> entries​(java.lang.String path)
        Returns an unmodifiable list of entries for the given path.
        Parameters:
        path - replication path
        Returns:
        list of entries
      • getEntry

        ReplicationQueue.Entry getEntry​(java.lang.String path,
                                        java.util.Calendar after)
        Returns the entry that matches the given path and was scheduled after the given time.
        Parameters:
        path - the path
        after - the schedule time or null
        Returns:
        the entry or null
      • clear

        void clear()
        Clears this queue
      • clear

        void clear​(java.util.Set<java.lang.String> ids)
        Clears the entries with the id's specified in the set. Note: this operation might change the sequence of replication events. especially then they depend on each other, eg: delete/create can result in unexpected behaviours.
        Parameters:
        ids - the ids of the entries to remove
      • isBlocked

        boolean isBlocked()
        Deprecated.
        since 5.4. use getStatus() instead
        Returns true if this queue is blocked by an undeliverable entry.
        Returns:
        true if blocked.
      • isPaused

        boolean isPaused()
        Returns true if this queue is paused.
        Returns:
        true if paused.
        Since:
        5.4
      • setPaused

        void setPaused​(boolean paused)
        Controls if this queue should be paused. Please note that the "paused" state is not persisted (yet), i.e. will be in running state after a restart.
        Parameters:
        paused - true to pause
        Since:
        5.4
      • lastProcessTime

        long lastProcessTime()
        Deprecated.
        since 5.4. use getStatus() instead
        Returns the time when the last entry was processed.
        Returns:
        the last process time (in ms).
      • nextRetryPeriod

        long nextRetryPeriod()
        Deprecated.
        since 5.4. use getStatus() instead
        Returns the time period (in milliseconds) when the next retry is performed. this only returns a valid time if the queue is blocked.
        Returns:
        the time for next retry
      • forceRetry

        void forceRetry()
        Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.