Package com.day.cq.replication
Interface TransportHandler
-
public interface TransportHandlerTheTransportHandleris 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 booleancanHandle(AgentConfig config)Returnstrueif this transport handler can handle the given config.ReplicationResultdeliver(TransportContext ctx, ReplicationTransaction tx)Delivers content to a subscriber.
-
-
-
Method Detail
-
canHandle
boolean canHandle(AgentConfig config)
Returnstrueif this transport handler can handle the given config.- Parameters:
config- the config- Returns:
trueif 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.
-
-