public class JtaTxWriter extends AbstractWriter implements com.gemstone.gemfire.cache.TransactionWriter
TransactionWriterCntrName_BeforeCreate_isDist, CntrName_BeforeCreate_isExp, CntrName_BeforeCreate_isLoad, CntrName_BeforeCreate_isLocalLoad, CntrName_BeforeCreate_isNetLoad, CntrName_BeforeCreate_isNetSearch, CntrName_BeforeCreate_isNotDist, CntrName_BeforeCreate_isNotExp, CntrName_BeforeCreate_isNotLoad, CntrName_BeforeCreate_isNotLocalLoad, CntrName_BeforeCreate_isNotNetLoad, CntrName_BeforeCreate_isNotNetSearch, CntrName_BeforeCreate_isNotRemote, CntrName_BeforeCreate_isRemote, CntrName_BeforeDestroy_isDist, CntrName_BeforeDestroy_isExp, CntrName_BeforeDestroy_isLoad, CntrName_BeforeDestroy_isLocalLoad, CntrName_BeforeDestroy_isNetLoad, CntrName_BeforeDestroy_isNetSearch, CntrName_BeforeDestroy_isNotDist, CntrName_BeforeDestroy_isNotExp, CntrName_BeforeDestroy_isNotLoad, CntrName_BeforeDestroy_isNotLocalLoad, CntrName_BeforeDestroy_isNotNetLoad, CntrName_BeforeDestroy_isNotNetSearch, CntrName_BeforeDestroy_isNotRemote, CntrName_BeforeDestroy_isRemote, CntrName_BeforeRegionClear_isDist, CntrName_BeforeRegionClear_isExp, CntrName_BeforeRegionClear_isNotDist, CntrName_BeforeRegionClear_isNotExp, CntrName_BeforeRegionClear_isNotRemote, CntrName_BeforeRegionClear_isRemote, CntrName_BeforeRegionDestroy_isDist, CntrName_BeforeRegionDestroy_isExp, CntrName_BeforeRegionDestroy_isNotDist, CntrName_BeforeRegionDestroy_isNotExp, CntrName_BeforeRegionDestroy_isNotRemote, CntrName_BeforeRegionDestroy_isRemote, CntrName_BeforeUpdate_isDist, CntrName_BeforeUpdate_isExp, CntrName_BeforeUpdate_isLoad, CntrName_BeforeUpdate_isLocalLoad, CntrName_BeforeUpdate_isNetLoad, CntrName_BeforeUpdate_isNetSearch, CntrName_BeforeUpdate_isNotDist, CntrName_BeforeUpdate_isNotExp, CntrName_BeforeUpdate_isNotLoad, CntrName_BeforeUpdate_isNotLocalLoad, CntrName_BeforeUpdate_isNotNetLoad, CntrName_BeforeUpdate_isNotNetSearch, CntrName_BeforeUpdate_isNotRemote, CntrName_BeforeUpdate_isRemote, whereIWasRegistered| Constructor and Description |
|---|
JtaTxWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCommit(com.gemstone.gemfire.cache.TransactionEvent txEvent)
Called after successful conflict checking (in GemFire) and prior to commit
The TxWriter simply commits the work done in the dataBase earlier by
the CacheWriter.
|
void |
close()
Called when the region containing this callback is destroyed, when the
cache is closed, or when a callback is removed from a region using an
AttributesMutator. |
protected void |
throwException(String errStr)
Utility method to log an Exception, place it into a wellknown location in the
EventBB and throw an exception.
|
public void beforeCommit(com.gemstone.gemfire.cache.TransactionEvent txEvent)
throws com.gemstone.gemfire.cache.TransactionWriterException
beforeCommit in interface com.gemstone.gemfire.cache.TransactionWritertxEvent - the TransactionEventcom.gemstone.gemfire.cache.TransactionWriterExceptionprotected void throwException(String errStr) throws com.gemstone.gemfire.cache.TransactionWriterException
errString - string to be logged, placed on EventBB and include in
ExceptionTestException - containing the given stringcom.gemstone.gemfire.cache.TransactionWriterExceptionTestHelper.checkForEventErrorpublic void close()
AttributesMutator.close in interface com.gemstone.gemfire.cache.CacheCallbackCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.