Package com.day.cq.replication
Interface ReplicationQueue
-
public interface ReplicationQueueReplicationQueue...
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceReplicationQueue.EntryDefines an entry of the replication queuestatic interfaceReplicationQueue.StatusInformational status of this queue
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidclear()Clears this queuevoidclear(java.util.Set<java.lang.String> ids)Clears the entries with the id's specified in the set.java.util.List<ReplicationQueue.Entry>entries()Returns an unmodifiable list of all entries in this queue.java.util.List<ReplicationQueue.Entry>entries(java.lang.String path)Returns an unmodifiable list of entries for the given path.voidforceRetry()Forces a retry attempt on a blocked entry.ReplicationQueue.EntrygetEntry(java.lang.String path, java.util.Calendar after)Returns the entry that matches the given path and was scheduled after the given time.java.lang.StringgetName()Returns the name of this queueReplicationQueue.StatusgetStatus()Returns the queue statusbooleanisBlocked()Deprecated.since 5.4.booleanisPaused()Returnstrueif this queue is paused.longlastProcessTime()Deprecated.since 5.4.longnextRetryPeriod()Deprecated.since 5.4.voidsetPaused(boolean paused)Controls if this queue should be paused.
-
-
-
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 pathafter- the schedule time ornull- 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. usegetStatus()insteadReturnstrueif this queue is blocked by an undeliverable entry.- Returns:
trueif blocked.
-
isPaused
boolean isPaused()
Returnstrueif this queue is paused.- Returns:
trueif 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-trueto pause- Since:
- 5.4
-
lastProcessTime
long lastProcessTime()
Deprecated.since 5.4. usegetStatus()insteadReturns the time when the last entry was processed.- Returns:
- the last process time (in ms).
-
nextRetryPeriod
long nextRetryPeriod()
Deprecated.since 5.4. usegetStatus()insteadReturns 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
-
getStatus
ReplicationQueue.Status getStatus()
Returns the queue status- Returns:
- the queue status
- Since:
- 5.4
-
forceRetry
void forceRetry()
Forces a retry attempt on a blocked entry. this has only an effect, if the queue is blocked.
-
-