Freeze Slice API Reference
Operations | List of all members
Freeze::TransactionalEvictor Local Interface Reference

A transactional evictor is an evictor that performs every single read-write operation within its own transaction. More...

defined in <Freeze/TransactionalEvictor.ice>

local interface TransactionalEvictor extends Freeze::Evictor { ... }

Inheritance diagram for Freeze::TransactionalEvictor:
Inheritance graph
[legend]
Collaboration diagram for Freeze::TransactionalEvictor:
Collaboration graph
[legend]

Operations

Transaction getCurrentTransaction ()
 Get the transaction associated with the calling thread. More...
 
void setCurrentTransaction (Transaction tx)
 Associate a transaction with the calling thread. More...
 
- Operations inherited from Freeze::Evictor
Object * add (Object servant, Ice::Identity id)
 Add a servant to this evictor. More...
 
Object * addFacet (Object servant, Ice::Identity id, string facet)
 Like add, but with a facet. More...
 
EvictorIterator getIterator (string facet, int batchSize)
 Get an iterator for the identities managed by the evictor. More...
 
int getSize ()
 Get the size of the evictor's servant queue. More...
 
bool hasFacet (Ice::Identity id, string facet)
 Like hasObject, but with a facet. More...
 
bool hasObject (Ice::Identity id)
 Returns true if the given identity is managed by the evictor with the default facet. More...
 
Object remove (Ice::Identity id)
 Permanently destroy an Ice object. More...
 
Object removeFacet (Ice::Identity id, string facet)
 Like remove, but with a facet. More...
 
void setSize (int sz)
 Set the size of the evictor's servant queue. More...
 
- Operations inherited from Ice::ServantLocator
void deactivate (string category)
 
void finished (Current curr,["swift:nonnull"] Object servant, LocalObject cookie)
 
Object locate (Current curr, out LocalObject cookie)
 

Detailed Description

A transactional evictor is an evictor that performs every single read-write operation within its own transaction.

Operation Documentation

◆ getCurrentTransaction()

["cpp:const"]
Transaction getCurrentTransaction ( )

Get the transaction associated with the calling thread.

Returns
The transaction associated with the calling thread.

◆ setCurrentTransaction()

void setCurrentTransaction ( Transaction  tx)

Associate a transaction with the calling thread.

Parameters
txThe transaction to associate with the calling thread.

The documentation for this interface was generated from the following file: