| IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1 |
java.lang.Object
|
+--com.ibm.websphere.objectgrid.CopyMode
setCopyMode(CopyMode, Class)
Field Summary | |
---|---|
public CopyMode | COPY_ON_READ_AND_COMMIT
The COPY_ON_READ_AND_COMMIT mode is the default mode. This mode ensures.
|
public CopyMode | COPY_ON_READ
The COPY_ON_READ mode improves performance over the
COPY_ON_READ_AND_COMMIT mode by eliminating the copy that occurs
when a transaction is committed.
|
public CopyMode | COPY_ON_WRITE
The COPY_ON_WRITE mode improves performance over the COPY_ON_READ_AND_COMMIT
mode by eliminating the copy that occurs when ObjectMap.
|
public CopyMode | NO_COPY
The NO_COPY mode allows an application to promise that it will
never modify a value object obtained using an ObjectMap.
|
Method Summary | |
---|---|
public
String | toString()
Returns a string representation of the CopyMode .
|
Methods inherited from java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static COPY_ON_READ_AND_COMMIT
ObjectMap.get
method for a given key,
and it is the first access of the ObjectMap entry for that key, a copy
of the value is returned. When the transaction is committed, any changes
the application committed are copied to the BackingMap to ensure that
the application does not have reference to the committed value in BackingMap.
public static COPY_ON_READ
public static COPY_ON_WRITE
BackingMap
examines the proxy to determine if any copy was made
as a result of a set method being called. If a copy was made, then the reference
to that copy is stored in the BackingMap. The big advantage of this mode
is a value is never copied on read or at commit when the transaction never
calls a set method to mutate the value.
public static NO_COPY
Method Detail |
public String toString( | ) |
CopyMode
.
CopyMode
.
| IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1 |