Package com.day.cq.replication
Interface Outbox
public interface Outbox
Represents an outbox that will return new items on this instance,
automatically removing items older than the timestamp given.
-
Method Summary
Modifier and TypeMethodDescriptionvoidfetch(Calendar time, OutputStream out) Fetch items from the outbox, having a last modified time greater than the given optional time, automatically removing items that are older.getPath()Returns the outbox path.voidput(ReplicationAction action) Put an empty item in the outbox with a replication action other thanReplicationActionType.ACTIVATE.voidput(ReplicationAction action, InputStream in) Put item in the outbox.
-
Method Details
-
put
Put item in the outbox.- Parameters:
action- replication action, must not beReplicationActionType.ACTIVATEin- item data- Throws:
ReplicationException- if an error occurs
-
put
Put an empty item in the outbox with a replication action other thanReplicationActionType.ACTIVATE.- Parameters:
action- replication action, must not beReplicationActionType.ACTIVATE- Throws:
ReplicationException- if an error occurs
-
fetch
Fetch items from the outbox, having a last modified time greater than the given optional time, automatically removing items that are older.- Parameters:
time- if notnull, all items older than this date are automatically purged from the outbox before returning the outbox's contentout- output stream where to store a virtual durbo package namedoutboxwith the items in the outbox as children- Throws:
ReplicationException- if an error occurs
-
getPath
String getPath()Returns the outbox path.- Returns:
- the outbox path.
-