electric.util.dictionary.persistent
Class Sync

java.lang.Object
  extended byelectric.util.dictionary.persistent.Sync
All Implemented Interfaces:
java.lang.Runnable

public final class Sync
extends java.lang.Object
implements java.lang.Runnable

Sync performs bidirectional synchronization between an IPersistentDictionary and its underlying storage. Because this class uses WeakReference, it requires JDK 1.2 and above.

Author:
webMethods

Method Summary
static void addDictionary(IPersistentDictionary dictionary)
           
static void removeDictionary(IPersistentDictionary dictionary)
           
 void run()
           
static void setSyncCycle(int milliseconds)
           
 void sync()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setSyncCycle

public static void setSyncCycle(int milliseconds)
Parameters:
milliseconds -

addDictionary

public static void addDictionary(IPersistentDictionary dictionary)
Parameters:
dictionary -

removeDictionary

public static void removeDictionary(IPersistentDictionary dictionary)
Parameters:
dictionary -

run

public void run()
Specified by:
run in interface java.lang.Runnable

sync

public void sync()


copyright© 2001-2004 by webMethods All Rights Reserved.