org.infinispan.context.impl.AbstractTxInvocationContext Maven / Gradle / Ivy
package org.infinispan.context.impl;
import org.infinispan.commands.write.WriteCommand;
import org.infinispan.container.entries.CacheEntry;
import org.infinispan.container.entries.InternalCacheEntry;
import org.infinispan.transaction.impl.AbstractCacheTransaction;
import org.infinispan.transaction.xa.GlobalTransaction;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Support class for {@link org.infinispan.context.impl.TxInvocationContext}.
*
* @author [email protected]
* @author Galder Zamarreño
* @author Pedro Ruivo
* @since 4.0
*/
public abstract class AbstractTxInvocationContext extends AbstractInvocationContext
implements TxInvocationContext {
private final T cacheTransaction;
protected AbstractTxInvocationContext(T cacheTransaction) {
if (cacheTransaction == null) {
throw new NullPointerException("CacheTransaction cannot be null");
}
this.cacheTransaction = cacheTransaction;
}
@Override
public Object getLockOwner() {
//not final because the test suite overwrite it...
return cacheTransaction.getGlobalTransaction();
}
@Override
public final Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy