Class IracExecutor

java.lang.Object
org.infinispan.xsite.irac.IracExecutor
All Implemented Interfaces:
Runnable

public class IracExecutor extends Object implements 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 Details

  • Method Details

    • setExecutor

      public void setExecutor(Executor executor)
    • run

      public void run()
      Executes, in a new thread, or queues the task.
      Specified by:
      run in interface Runnable
    • executor

      public Executor executor()