io.vlingo.xoom.actors.ArgumentLock Maven / Gradle / Ivy
package io.vlingo.xoom.actors;
import java.lang.ref.WeakReference;
import java.util.Map;
import java.util.WeakHashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import io.vlingo.xoom.common.Tuple2;
/**
* based on the solution found on https://stackoverflow.com/a/28347825
*/
public final class ArgumentLock implements Lock {
private static final Map