private class TemporaryBuffer.Multiplexer extends java.lang.Object implements Finalizable
TransactionManager
to be
notified when its enclosing buffer's scope is closing. This drives
cleanup of the backing temp table, which can take one of two forms:
Modifier and Type | Field and Description |
---|---|
private Persistence.Context |
ctx
Persistence context for transaction management
|
Constructor and Description |
---|
Multiplexer(Persistence.Context ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deleted()
Provides a notification that the external program in which the object is registered is
being deleted and the object's reference may be lost after this method is called.
|
void |
finished()
Cleans up the backing temp table by either dropping it (if no other
buffers are using it any longer), or by removing this buffer's
records from it.
|
void |
iterate()
No-op.
|
void |
retry()
No-op.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initFailure
private final Persistence.Context ctx
Multiplexer(Persistence.Context ctx)
ctx
- Persistence context for transaction management.public void iterate()
iterate
in interface Finalizable
public void retry()
retry
in interface Finalizable
public void finished()
finished
in interface Finalizable
public void deleted()
This implementation does nothing.
deleted
in interface Finalizable