SPT Object Database API

com.sptci.prevayler
Class PrevalentSystemFactory.SnapshotTask

java.lang.Object
  extended by java.util.TimerTask
      extended by com.sptci.prevayler.PrevalentSystemFactory.SnapshotTask
All Implemented Interfaces:
Runnable
Enclosing class:
PrevalentSystemFactory

private static class PrevalentSystemFactory.SnapshotTask
extends TimerTask

A TimerTask that is used to snapshot the prevayler periodically.


Field Summary
private  Prevayler prevayler
          The prevalent system to snapshot.
 
Constructor Summary
private PrevalentSystemFactory.SnapshotTask(Prevayler prevayler)
          Create a new instance of the task for the specified system.
 
Method Summary
 void run()
          The action to be performed by this task when run by a Timer.
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prevayler

private final Prevayler prevayler
The prevalent system to snapshot.

Constructor Detail

PrevalentSystemFactory.SnapshotTask

private PrevalentSystemFactory.SnapshotTask(Prevayler prevayler)
Create a new instance of the task for the specified system.

Parameters:
prevayler - The prevayler instance to snapshot.
Method Detail

run

public void run()
The action to be performed by this task when run by a Timer.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask

SPT Object Database API