Package org.eclipse.core.filebuffers
Interface ISynchronizationContext
-
public interface ISynchronizationContext
A file buffer manager (seeIFileBufferManager
) uses anISynchronizationContext
in order to execute commands encapsulated asRunnable
. The synchronization context executes theRunnables
according to a specific synchronization/execution policy. This could be that the givenRunnable
is executed in a specific thread or environment or adhere to specific timing constraints. The concrete characteristics of the policy is to be specified by the context implementer.This interface can be implemented by clients. Clients use
IFileBufferManager.setSynchronizationContext(ISynchronizationContext)
to install a particular synchronization context with a file buffer manager.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(Runnable runnable)
Executes the given runnable according to the specified synchronization/execution policy.
-
-
-
Method Detail
-
run
void run(Runnable runnable)
Executes the given runnable according to the specified synchronization/execution policy.- Parameters:
runnable
- the runnable to be executed
-
-