Constructor and Description |
---|
SpaceInterceptor(Space<K,V> sp) |
Modifier and Type | Method and Description |
---|---|
boolean |
existAny(K[] keys) |
boolean |
existAny(K[] keys,
long timeout) |
V |
in(K key)
Take an entry from the space, waiting forever until one exists.
|
V |
in(K key,
long timeout)
Take an entry from the space, waiting a limited amount of time
until one exists.
|
V |
inp(K key)
In probe takes an entry from the space if one exists,
return null otherwise.
|
void |
nrd(K key)
Nrd (not read) waits forever until Key is not present in space
Resolution for expiring entries is implementation dependant, but a minimum one-second is suggested.
|
V |
nrd(K key,
long timeout)
Nrd (not read) waits up to timeout until Key is not present in space
Resolution for expiring entries is implementation dependant, but a minimum one-second is suggested.
|
void |
out(K key,
V value)
Write a new entry into the Space
|
void |
out(K key,
V value,
long timeout)
Write a new entry into the Space, with an timeout value
|
void |
push(K key,
V value)
Write a new entry at the head of a queue.
|
void |
push(K key,
V value,
long timeout)
Write a new entry at the head of the queue with a timeout value
|
void |
put(K key,
V value)
Write a single entry at the head of the queue discarding the other entries
|
void |
put(K key,
V value,
long timeout)
Write a single entry at the head of the queue discarding the other entries, with timeout.
|
V |
rd(K key)
Read an entry from the space, waiting forever until one exists.
|
V |
rd(K key,
long timeout)
Read an entry from the space, waiting a limited amount of time
until one exists.
|
V |
rdp(K key)
Read probe reads an entry from the space if one exists,
return null otherwise.
|
public void out(K key, V value)
Space
public void out(K key, V value, long timeout)
Space
public void push(K key, V value)
Space
public void push(K key, V value, long timeout)
Space
public void put(K key, V value)
Space
public void put(K key, V value, long timeout)
Space
public V in(K key)
Space
public V rd(K key)
Space
public V in(K key, long timeout)
Space
public V rd(K key, long timeout)
Space
public V inp(K key)
Space
public V rdp(K key)
Space
public void nrd(K key)
Space
public V nrd(K key, long timeout)
Space
public boolean existAny(K[] keys)