com.bagri.server.hazelcast.task.tx.TransactionCommiter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
The newest version!
package com.bagri.server.hazelcast.task.tx;
import org.springframework.beans.factory.annotation.Autowired;
import com.bagri.core.api.SchemaRepository;
import com.bagri.core.api.TransactionManagement;
import com.hazelcast.spring.context.SpringAware;
@SpringAware
public class TransactionCommiter extends com.bagri.client.hazelcast.task.tx.TransactionCommiter {
private transient TransactionManagement txMgr;
@Autowired
@Override
public void setRepository(SchemaRepository repo) {
super.setRepository(repo);
this.txMgr = repo.getTxManagement();
}
@Override
public Boolean call() throws Exception {
txMgr.commitTransaction(txId);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy