Package org.infinispan.xsite.irac
Class IracExecutor
java.lang.Object
org.infinispan.xsite.irac.IracExecutor
- All Implemented Interfaces:
Runnable
Executes the "IRAC" sending task in a single thread.
This executor makes sure no more than one task is running at the same time. Also, it avoids "queueing" multiple tasks by queuing at most one. This is possible because the task does the same thing: iterator over pending updates and send them to the remote site.
- Since:
- 12
- Author:
- Pedro Ruivo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecutor()
void
run()
Executes, in a new thread, or queues the task.void
setExecutor
(Executor executor)