|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.config.Option
public class Option
Used to override characteristics of specific calls to the cache. The javadocs of each of the setters below detail functionality and behaviour.
Constructor Summary | |
---|---|
Option()
|
Method Summary | |
---|---|
DataVersion |
getDataVersion()
|
boolean |
getForceDataGravitation()
|
boolean |
isCacheModeLocal()
only applies to put() and remove() methods on the cache. |
boolean |
isFailSilently()
|
boolean |
isSuppressLocking()
|
void |
setCacheModeLocal(boolean cacheModeLocal)
overriding CacheMode from REPL_SYNC, REPL_ASYNC, INVALIDATION_SYNC, INVALIDATION_ASYNC to LOCAL. |
void |
setDataVersion(DataVersion dataVersion)
Passing in an DataVersion instance when using optimistic locking will override the default behaviour of internally generated version info and allow the caller to handle data versioning. |
void |
setFailSilently(boolean failSilently)
suppress any failures in your cache operation, including version mismatches with optimistic locking, timeouts obtaining locks, transaction rollbacks. |
void |
setForceDataGravitation(boolean enableDataGravitation)
Enables data gravitation calls if a cache miss is detected when using Buddy Replication. |
void |
setSuppressLocking(boolean suppressLocking)
Suppresses acquiring locks for the given invocation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Option()
Method Detail |
---|
public boolean isSuppressLocking()
public void setSuppressLocking(boolean suppressLocking)
public boolean isFailSilently()
public void setFailSilently(boolean failSilently)
public boolean isCacheModeLocal()
public void setCacheModeLocal(boolean cacheModeLocal)
cacheModeLocal
- public DataVersion getDataVersion()
public void setDataVersion(DataVersion dataVersion)
DataVersion
instance when using optimistic locking will override the default behaviour of internally generated version info and allow the caller to handle data versioning.
public boolean getForceDataGravitation()
public void setForceDataGravitation(boolean enableDataGravitation)
autoDataGravitation
is set to false
.
See Buddy Replication documentation for more details.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |