com.yahoo.elide.datastores.multiplex.MultiplexReadTransaction Maven / Gradle / Ivy
/*
* Copyright 2015, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.multiplex;
import com.yahoo.elide.core.DataStore;
import com.yahoo.elide.core.DataStoreTransaction;
import com.yahoo.elide.core.RequestScope;
/**
* Multiplex transaction handler.
*/
public class MultiplexReadTransaction extends MultiplexTransaction {
public MultiplexReadTransaction(MultiplexManager multiplexManager) {
super(multiplexManager);
}
@Override
protected DataStoreTransaction beginTransaction(DataStore dataStore) {
// begin read transaction
return dataStore.beginReadTransaction();
}
@Override
public void save(Object entity, RequestScope scope) {
throw new UnsupportedOperationException();
}
@Override
public void delete(Object entity, RequestScope scope) {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy