All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.scalar.db.storage.multistorage.MultiStorageProvider Maven / Gradle / Ivy

Go to download

A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases

The newest version!
package com.scalar.db.storage.multistorage;

import com.scalar.db.api.DistributedStorage;
import com.scalar.db.api.DistributedStorageAdmin;
import com.scalar.db.api.DistributedStorageProvider;
import com.scalar.db.config.DatabaseConfig;

public class MultiStorageProvider implements DistributedStorageProvider {
  @Override
  public String getName() {
    return MultiStorageConfig.STORAGE_NAME;
  }

  @Override
  public DistributedStorage createDistributedStorage(DatabaseConfig config) {
    return new MultiStorage(config);
  }

  @Override
  public DistributedStorageAdmin createDistributedStorageAdmin(DatabaseConfig config) {
    return new MultiStorageAdmin(config);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy