[infinispan-issues] [JBoss JIRA] (ISPN-11800) Convert BackupReceiver to component
Pedro Ruivo (Jira)
issues at jboss.org
Fri May 8 05:07:00 EDT 2020
Pedro Ruivo created ISPN-11800:
----------------------------------
Summary: Convert BackupReceiver to component
Key: ISPN-11800
URL: https://issues.redhat.com/browse/ISPN-11800
Project: Infinispan
Issue Type: Enhancement
Components: Core, Cross-Site Replication
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
The {{BackupReceiver}} instance is created by {{BackupReceiverRepository}} and it needs access to the {{Cache}} instance for its dependencies.
However, with the latest changes in Cross-Site Replication, it needs to be accessed by commands and the only way to do it is by doing:
{code:java}
BackupReceiver backupReceiver = registry.getGlobalComponentRegistry()
.getComponent(BackupReceiverRepository.class)
.getBackupReceiver(cache);
{code}
Bottom line: tt should be converted to a component.
Another alternative would be to merge it with {{PerCacheInboundInvocationHandler}}... but it doesn't sound too good since it will increase the complexity and size of {{PerCacheInboundInvocationHandler}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list