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

com.bagri.server.hazelcast.task.tx.TransactionCommiter Maven / Gradle / Ivy

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