Search in sources :

Example 1 with XSiteStateConsumer

use of org.infinispan.xsite.statetransfer.XSiteStateConsumer in project infinispan by infinispan.

the class XSiteStateTransferStartReceiveCommand method invokeAsync.

@Override
public CompletionStage<?> invokeAsync(ComponentRegistry registry) {
    XSiteStateTransferManager stateTransferManager = registry.getXSiteStateTransferManager().running();
    XSiteStateConsumer consumer = stateTransferManager.getStateConsumer();
    consumer.startStateTransfer(siteName);
    return CompletableFutures.completedNull();
}
Also used : XSiteStateTransferManager(org.infinispan.xsite.statetransfer.XSiteStateTransferManager) XSiteStateConsumer(org.infinispan.xsite.statetransfer.XSiteStateConsumer)

Aggregations

XSiteStateConsumer (org.infinispan.xsite.statetransfer.XSiteStateConsumer)1 XSiteStateTransferManager (org.infinispan.xsite.statetransfer.XSiteStateTransferManager)1