public abstract class PutOptions extends java.lang.Object implements SpaceOptions<PutOptions>
put operations. PutOptions is used as a parameter to the following
methods of Space:
Space.put(Tuple, PutOptions)
Space.putAll(Collection, PutOptions)
Space.compareAndPut(Tuple, Tuple, PutOptions)
Space.compareAndPutAll(Collection, Collection, PutOptions)
create().| Constructor and Description |
|---|
PutOptions() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
clone()
Method to create a clone of this PutOptions object.
|
static PutOptions |
create()
Method used to instantiate an instance of a PutOptions object.
|
abstract java.lang.String |
getFilter()
Retrieve the filter that needs to be matched for the put to succeed
|
abstract long |
getLockWait()
Retrieve the current setting for the amount of time to wait for the
lock on the key of an existing tuple.
|
abstract long |
getTTL()
Retrieve the current setting for the number of milliseconds to use as an entry's
time to live.
|
abstract boolean |
isForget()
Retrieve whether tuples, which already exist in a space, should be returned
as the return values of
put operations, or whether the existing tuples
should be "forgotten" and not returned. |
abstract boolean |
isLock()
Retrieve whether or not to lock the key of a tuple after it is stored
into the space.
|
abstract boolean |
isRoute()
Retrieve whether the
put operation is routed. |
abstract boolean |
isUnlock()
Retrieve whether or not to unlock the key of a tuple after it is stored
into a space.
|
abstract PutOptions |
setFilter(java.lang.String filter)
Update the filter that would be matched for the put to succeed.
|
abstract PutOptions |
setForget(boolean doForget)
Specifies whether a tuple, which already exists in the space, should be returned
as the return value of a
put operation. |
abstract PutOptions |
setLock(boolean doLock)
Specify whether or not to lock the key of a tuple after the tuple has been
stored in a space.
|
abstract PutOptions |
setLockWait(long lockWait)
Specify the amount of time to wait to acquire the lock on the
key of an existing tuple.
|
abstract PutOptions |
setRoute(boolean doRoute)
Specifies whether the
put operation should be routed. |
abstract PutOptions |
setTTL(long ttl)
Specify the time to live for entries stored into a space using this PutOptions object.
|
abstract PutOptions |
setUnlock(boolean doUnlock)
Specify whether or not to unlock the key after storing a tuple into a space.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClosure, getResultHandler, setClosure, setResultHandlerpublic static PutOptions create()
public abstract java.lang.Object clone()
clone in class java.lang.Objectpublic abstract PutOptions setLockWait(long lockWait)
lockWait - Number of milliseconds to wait for a lock.public abstract long getLockWait()
public abstract PutOptions setLock(boolean doLock)
doLock - true - Lock the key if the put operation is successful.
false - Do not lock the key.public abstract boolean isLock()
put
with this PutOptions object will not be locked after the tuples are stored in
the space.public abstract PutOptions setUnlock(boolean doUnlock)
doUnlock - true - Unlock the key if the put is successful.
false - Do not unlock the key after the put operation.public abstract boolean isUnlock()
put operation is successful.
false - Do not unlock the key after the put operation.public abstract PutOptions setForget(boolean doForget)
put operation.doForget - true - Do not return (forget) tuples which may already
exist in the space. false - Return tuples which already exist in the space.public abstract boolean isForget()
put operations, or whether the existing tuples
should be "forgotten" and not returned.put operation.public abstract PutOptions setRoute(boolean doRoute)
put operation should be routed.doRoute - true - Route the operation. false - Do not route the operation.public abstract boolean isRoute()
put operation is routed.public abstract PutOptions setTTL(long ttl)
ttl - Time in milliseconds to use as an entry's time to live.public abstract long getTTL()
public abstract java.lang.String getFilter()
public abstract PutOptions setFilter(java.lang.String filter)
filter - The current filterCopyright (c) 2014 Cloud Software Group, Inc. All rights reserved.