org.eclipse.jpt.common.utility.synchronizers
Class Synchronizer.Null
java.lang.Object
org.eclipse.jpt.common.utility.synchronizers.Synchronizer.Null
- All Implemented Interfaces:
- java.io.Serializable, Synchronizer
- Enclosing interface:
- Synchronizer
public static final class Synchronizer.Null
- extends java.lang.Object
- implements Synchronizer, java.io.Serializable
Singleton implementation of the Synchronizer interface that will do
nothing.
- See Also:
- Serialized Form
|
Method Summary |
static Synchronizer |
instance()
|
void |
start()
Enable the synchronizer to allow future synchronizations as requested
by calls to Synchronizer.synchronize(). |
void |
stop()
Stop the synchronizer immediately or, if a synchronization is currently
in progress, when it completes. |
void |
synchronize()
Synchronize the dependent model with the primary model. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
INSTANCE
public static final Synchronizer INSTANCE
instance
public static Synchronizer instance()
start
public void start()
- Description copied from interface:
Synchronizer
- Enable the synchronizer to allow future synchronizations as requested
by calls to
Synchronizer.synchronize().
- Specified by:
start in interface Synchronizer
synchronize
public void synchronize()
- Description copied from interface:
Synchronizer
- Synchronize the dependent model with the primary model. Do nothing if
Synchronizer.start() has not previously been called. Do nothing if Synchronizer.stop()
has been called (without any intermediate call to Synchronizer.start().
- Specified by:
synchronize in interface Synchronizer
stop
public void stop()
- Description copied from interface:
Synchronizer
- Stop the synchronizer immediately or, if a synchronization is currently
in progress, when it completes. Return when the synchronizer is stopped.
No further synchonizations will performed until
Synchronizer.start() is called.
- Specified by:
stop in interface Synchronizer
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object