|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.objectgrid.writebehind.WriteBehindLoaderConstants
public class WriteBehindLoaderConstants
This class contains constants used for write behind loaders.
If a map is configured with write-behind loader update, the updates (could be insert type,
remove type, or update type) to the backend are not instantly updated to the backend by
calling the Loader.batchUpdate(TxID, LogSequence)
method. Instead, they are queued in a write-behind queue map, and then updated to
the backend periodically.
BackingMap.setWriteBehind(String)
Field Summary | |
---|---|
static String |
WRITE_BEHIND_FAILED_UPDATES_MAP_PREFIX
A write-behind update is pushed to the backend periodically within a different transaction from the one the update is made to ObjectGrid. |
Constructor Summary | |
---|---|
WriteBehindLoaderConstants()
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String WRITE_BEHIND_FAILED_UPDATES_MAP_PREFIX
LogElement
.
You can use Session.getMap(String)
to get a reference to the failed database
upate map, and then use ObjectMap.getNextKey(long)
to get the next failed
update and then take appropriate actions to compensate the failure.
We recommend removing the failed update from this failed database update map periodically.
By default, this failed database update map is configured with a TTL evictor. The
The type of the TTL evictor is TTLType.CREATION_TIME
and the time-to-live is
1 hour.
For example, you configure map "payroll" as write-behind. If the write-behind updates to the database fails, all the failed database updates will be stored in the map WriteBehindLoaderConstants.WRITE_BEHIND_FAILED_UPDATES_MAP_PREFIX+"payroll".
Constructor Detail |
---|
public WriteBehindLoaderConstants()
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |