private class decimal.PrecisionResetter extends java.lang.Object implements Finalizable
TransactionManager.registerFinalizable(com.goldencode.p2j.util.Finalizable, boolean)
and the Finalizable
interface.Modifier and Type | Field and Description |
---|---|
(package private) int |
oldPrecision
The precision to which the containing instance will be reset.
|
Constructor and Description |
---|
PrecisionResetter(int oldPrecision)
Construct an instance which can reset the containing instance's
precision when a notification is received.
|
Modifier and Type | Method and Description |
---|---|
void |
deleted()
Provides a notification that the external program scope in which the object is registered is
is being deleted and the object's reference will be lost after this method is called.
|
void |
finished()
Processes the end of scope notification and resets the associated
instance's precision.
|
void |
iterate()
Processes the iterate notification provided by the
TransactionManager . |
void |
retry()
Processes the retry notification provided by the
TransactionManager . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initFailure
int oldPrecision
PrecisionResetter(int oldPrecision)
decimal.setTemporaryPrecision(int)
.oldPrecision
- The precision to which the containing instance must be
reset.public void finished()
TransactionManager
.finished
in interface Finalizable
public void deleted()
This is a no-op in this case.
deleted
in interface Finalizable
public void iterate()
TransactionManager
. This implementation does nothing.iterate
in interface Finalizable
public void retry()
TransactionManager
. This implementation does nothing.retry
in interface Finalizable