Package com.day.cq.replication
Interface TransportHandler
-
public interface TransportHandler
TheTransportHandler
is used to transport the replication to the target host. A transport handler is created by a correspondingTransportHandler
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canHandle(AgentConfig config)
Returnstrue
if this transport handler can handle the given config.ReplicationResult
deliver(TransportContext ctx, ReplicationTransaction tx)
Delivers content to a subscriber.
-
-
-
Method Detail
-
canHandle
boolean canHandle(AgentConfig config)
Returnstrue
if this transport handler can handle the given config.- Parameters:
config
- the config- Returns:
true
if this handler can handle the uri
-
deliver
ReplicationResult deliver(TransportContext ctx, ReplicationTransaction tx) throws ReplicationException
Delivers content to a subscriber.- Parameters:
ctx
- transport contexttx
- the replication transaction- Returns:
- the replication result of this operation.
- Throws:
ReplicationException
- if an error occurs.
-
-