com.lordofthejars.nosqlunit.redis.embedded.BlockingMap Maven / Gradle / Ivy
package com.lordofthejars.nosqlunit.redis.embedded;
import java.util.Collection;
import java.util.Set;
public interface BlockingMap {
V getAndWait(K key) throws InterruptedException;
V getAndWait(K key, long timeout) throws InterruptedException;
V lastAndWait(K key) throws InterruptedException;
V lastAndWait(K key, long timeout) throws InterruptedException;
V put(K key, V value);
void putLast(K key, Collection elements);
void putFirst(K key, Collection elements);
V pollFirst(K key);
V pollLast(K key);
V getElement(K key, int index);
int size(K key);
V addElementAt(K key, V value, int index);
int indexOf(K key, V value);
Collection elements(K key);
boolean containsKey(K key);
V remove(K key, int index);
int lastIndexOf(K key, V value);
void clear(K key);
void replaceValues(K key, Collection newElements);
int size();
void clear();
Set keySet();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy