public class SpaceUtil
extends java.lang.Object
Constructor and Description |
---|
SpaceUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
inpAll(Space sp,
java.lang.Object key)
return all entries under a given key
|
static long |
nextLong(Space sp,
java.lang.Object key) |
static boolean |
outIfEmpty(Space sp,
java.lang.Object key,
java.lang.Object value,
long nrdTimeout,
long outTimeout) |
static void |
outWhenEmpty(Space sp,
java.lang.Object key,
java.lang.Object value) |
static void |
outWhenEmpty(Space sp,
java.lang.Object key,
java.lang.Object value,
long timeout) |
static void |
wipe(Space sp,
java.lang.Object key)
Remove all entries under key
|
static void |
wipeAndOut(Space sp,
java.lang.Object key,
java.lang.Object value)
Deprecated.
Use space.put instead
|
static void |
wipeAndOut(Space sp,
java.lang.Object key,
java.lang.Object value,
long timeout)
Deprecated.
use space.put instead
|
public static java.lang.Object[] inpAll(Space sp, java.lang.Object key)
sp
- the Spacekey
- Entry's keypublic static void wipe(Space sp, java.lang.Object key)
sp
- the Spacekey
- Entry's keypublic static void wipeAndOut(Space sp, java.lang.Object key, java.lang.Object value)
public static void wipeAndOut(Space sp, java.lang.Object key, java.lang.Object value, long timeout)
public static long nextLong(Space sp, java.lang.Object key)
public static boolean outIfEmpty(Space sp, java.lang.Object key, java.lang.Object value, long nrdTimeout, long outTimeout)
public static void outWhenEmpty(Space sp, java.lang.Object key, java.lang.Object value, long timeout)
public static void outWhenEmpty(Space sp, java.lang.Object key, java.lang.Object value)