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 Link icon

  • Method Details Link icon

    • setExecutor Link icon

      public void setExecutor(Executor executor)
    • run Link icon

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

      public Executor executor()