net.spy.db
Class TransactionPipeline

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.db.TransactionPipeline

public class TransactionPipeline
extends SpyObject

Asynchronous Saver.


Constructor Summary
TransactionPipeline()
          Get an instance of TransactionPipeline.
 
Method Summary
 void addTransaction(Savable s, SpyConfig conf)
          Add a transaction to the pipeline without a context.
 void addTransaction(Savable s, SpyConfig conf, SaveContext context)
          Add a transaction to the pipeline.
 void shutdown()
          Shut down the pipeline.
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionPipeline

public TransactionPipeline()
Get an instance of TransactionPipeline.

Method Detail

shutdown

public void shutdown()
Shut down the pipeline.


addTransaction

public void addTransaction(Savable s,
                           SpyConfig conf,
                           SaveContext context)
Add a transaction to the pipeline.

Parameters:
s - the savable
conf - the configuration
context - a context for the save

addTransaction

public void addTransaction(Savable s,
                           SpyConfig conf)
Add a transaction to the pipeline without a context.

Parameters:
s - the savable
conf - the configuration


Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.