com.lordofthejars.nosqlunit.redis.embedded
Class TransferMap<K,V>

java.lang.Object
  extended by com.lordofthejars.nosqlunit.redis.embedded.TransferMap<K,V>
All Implemented Interfaces:
BlockingMap<K,V>

public class TransferMap<K,V>
extends Object
implements BlockingMap<K,V>


Constructor Summary
TransferMap()
           
 
Method Summary
 V addElementAt(K key, V value, int index)
           
 void clear()
           
 void clear(K key)
           
 boolean containsKey(K key)
           
static
<K,V> TransferMap<K,V>
create()
           
 Collection<V> elements(K key)
           
 V getAndWait(K key)
           
 V getAndWait(K key, long timeout)
           
 V getElement(K key, int index)
           
 int indexOf(K key, V value)
           
 Set<K> keySet()
           
 V lastAndWait(K key)
           
 V lastAndWait(K key, long timeout)
           
 int lastIndexOf(K key, V value)
           
 V pollFirst(K key)
           
 V pollLast(K key)
           
 V put(K key, V value)
           
 void putFirst(K key, Collection<V> newElements)
           
 void putLast(K key, Collection<V> newElements)
           
 V remove(K key, int index)
           
 void replaceValues(K key, Collection<V> newElements)
           
 int size()
           
 int size(K key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferMap

public TransferMap()
Method Detail

create

public static <K,V> TransferMap<K,V> create()

getAndWait

public V getAndWait(K key,
                    long timeout)
Specified by:
getAndWait in interface BlockingMap<K,V>

getAndWait

public V getAndWait(K key)
Specified by:
getAndWait in interface BlockingMap<K,V>

put

public V put(K key,
             V value)
Specified by:
put in interface BlockingMap<K,V>

lastAndWait

public V lastAndWait(K key)
              throws InterruptedException
Specified by:
lastAndWait in interface BlockingMap<K,V>
Throws:
InterruptedException

lastAndWait

public V lastAndWait(K key,
                     long timeout)
              throws InterruptedException
Specified by:
lastAndWait in interface BlockingMap<K,V>
Throws:
InterruptedException

getElement

public V getElement(K key,
                    int index)
Specified by:
getElement in interface BlockingMap<K,V>

size

public int size()
Specified by:
size in interface BlockingMap<K,V>

clear

public void clear()
Specified by:
clear in interface BlockingMap<K,V>

size

public int size(K key)
Specified by:
size in interface BlockingMap<K,V>

addElementAt

public V addElementAt(K key,
                      V value,
                      int index)
Specified by:
addElementAt in interface BlockingMap<K,V>

pollFirst

public V pollFirst(K key)
Specified by:
pollFirst in interface BlockingMap<K,V>

pollLast

public V pollLast(K key)
Specified by:
pollLast in interface BlockingMap<K,V>

putLast

public void putLast(K key,
                    Collection<V> newElements)
Specified by:
putLast in interface BlockingMap<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface BlockingMap<K,V>

clear

public void clear(K key)
Specified by:
clear in interface BlockingMap<K,V>

remove

public V remove(K key,
                int index)
Specified by:
remove in interface BlockingMap<K,V>

putFirst

public void putFirst(K key,
                     Collection<V> newElements)
Specified by:
putFirst in interface BlockingMap<K,V>

containsKey

public boolean containsKey(K key)
Specified by:
containsKey in interface BlockingMap<K,V>

replaceValues

public void replaceValues(K key,
                          Collection<V> newElements)
Specified by:
replaceValues in interface BlockingMap<K,V>

elements

public Collection<V> elements(K key)
Specified by:
elements in interface BlockingMap<K,V>

indexOf

public int indexOf(K key,
                   V value)
Specified by:
indexOf in interface BlockingMap<K,V>

lastIndexOf

public int lastIndexOf(K key,
                       V value)
Specified by:
lastIndexOf in interface BlockingMap<K,V>


Copyright © 2012. All Rights Reserved.