public class AutoTriggeredSynchronizationManager extends BatchSynchronizationManager
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_TRIGGER_DELAY
The delay to wait in milliseconds before executing the queued requests.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
execute()
Executes all the queued request runnables within an EMF transactional
command.
|
static AutoTriggeredSynchronizationManager |
getInstance(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
Returns a shared instance of the AutoTriggeredSynchronization manager.
|
int |
getState()
Returns the state of the synchronization Job.
|
int |
getTriggerDelay()
Returns the delay to wait in milliseconds before executing the queued
requests.
|
protected void |
notifySynchronizationRequestAdded(java.lang.Runnable newRequest)
Method to be called when a synchronization request is queued.
|
void |
setTriggerDelay(int delay)
Sets the delay to wait in milliseconds before executing the queued
requests.
|
getEditingDomain, queueSynchronizationRequest, trace
public static int DEFAULT_TRIGGER_DELAY
public static final AutoTriggeredSynchronizationManager getInstance(org.eclipse.emf.transaction.TransactionalEditingDomain editingDomain)
editingDomain
- TransactionalEditingDomain in which the operation
executes.protected void notifySynchronizationRequestAdded(java.lang.Runnable newRequest)
notifySynchronizationRequestAdded
in class BatchSynchronizationManager
newRequest
- Runnable the synchronization request.public void setTriggerDelay(int delay)
delay
- int milliseconds to wait before executing the queued
requests.public int getTriggerDelay()
public int getState()
Job.getState()
public org.eclipse.core.runtime.IStatus execute()
BatchSynchronizationManager
execute
in class BatchSynchronizationManager