org.infinispan.partitionhandling.impl.AvailablePartitionHandlingManager Maven / Gradle / Ivy
package org.infinispan.partitionhandling.impl;
import org.infinispan.commands.write.WriteCommand;
import org.infinispan.container.versioning.EntryVersionsMap;
import org.infinispan.partitionhandling.AvailabilityMode;
import org.infinispan.remoting.transport.Address;
import org.infinispan.topology.CacheTopology;
import org.infinispan.transaction.xa.GlobalTransaction;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
/**
* {@link PartitionHandlingManager} implementation when the cluster is always available.
*
* @author Pedro Ruivo
* @since 8.0
*/
public class AvailablePartitionHandlingManager implements PartitionHandlingManager {
private AvailablePartitionHandlingManager() {
}
public static AvailablePartitionHandlingManager getInstance() {
return SingletonHolder.INSTANCE;
}
@Override
public AvailabilityMode getAvailabilityMode() {
return AvailabilityMode.AVAILABLE;
}
@Override
public void setAvailabilityMode(AvailabilityMode availabilityMode) {/*no-op*/}
@Override
public void checkWrite(Object key) {/*no-op*/}
@Override
public void checkRead(Object key) {/*no-op*/}
@Override
public void checkClear() {/*no-op*/}
@Override
public void checkBulkRead() {/*no-op*/}
@Override
public CacheTopology getLastStableTopology() {
return null;
}
@Override
public boolean addPartialRollbackTransaction(GlobalTransaction globalTransaction, Collection affectedNodes,
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy