如何以编程方式将页面激活到 AEM 中的特定复制代理?

How do I programmatically activate pages to only certain replication agents in AEM?

如何使用 Replication API's

以编程方式将页面仅激活到 AEM 中的特定复制代理

AEM 提供 ReplicationOptions API。这可以帮助 selecting the replication agent 使用 public void setFilter(AgentFilter filter)

代理可以根据需要命名,API可以匹配public void setFilter(AgentFilter filter)中的确切代理名称,或者可以使用正则表达式匹配所需的代理。

另请参考another answer on this