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

org.infinispan.util.concurrent.locks.KeyAwareLockListener Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.util.concurrent.locks;

/**
 * A listener for {@link KeyAwareLockPromise}.
 * 

* This event contains the key that the lock owner is try to acquire. * * @author Pedro Ruivo * @since 8.0 */ public interface KeyAwareLockListener { /** * Invoked when the lock is available. * * @param key the key associated to this lock. * @param state the lock state. Possible values are {@link LockState#ACQUIRED}, {@link LockState#TIMED_OUT} or * {@link LockState#DEADLOCKED}. */ void onEvent(Object key, LockState state); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy