// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/Interactor.java
// public interface Interactor {
//   public void execute() throws Throwable;
// }
// 
// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/InteractorInvoker.java
// public interface InteractorInvoker {
//   void execute(Interactor interactor);
//   void execute(Interactor interactor, InteractorPriority priority);
// }
// 
// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/InteractorPriority.java
// public enum InteractorPriority {
//   LOW(1),
//   MEDIUM(50),
//   HIGH(100),
//   URGENT(200);
// 
//   private int priority;
// 
//   InteractorPriority(int priority) {
//     this.priority = priority;
//   }
// 
//   public int getPriorityValue() {
//     return priority;
//   }
// }


import com.path.android.jobqueue.Job;
import com.path.android.jobqueue.JobManager;
import com.path.android.jobqueue.Params;
import sergio.vasco.androidforexample.domain.interactors.Interactor;
import sergio.vasco.androidforexample.domain.interactors.InteractorInvoker;
import sergio.vasco.androidforexample.domain.interactors.InteractorPriority;
package sergio.vasco.realmforandroid.app.domain;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 31/3/15.
 */
public class InteractorInvokerImp implements InteractorInvoker {

  private JobManager jobManager;

  public InteractorInvokerImp(JobManager jobManager) {
    this.jobManager = jobManager;
  }

// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/Interactor.java
// public interface Interactor {
//   public void execute() throws Throwable;
// }
// 
// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/InteractorInvoker.java
// public interface InteractorInvoker {
//   void execute(Interactor interactor);
//   void execute(Interactor interactor, InteractorPriority priority);
// }
// 
// Path: domain/src/main/java/sergio/vasco/androidforexample/domain/interactors/InteractorPriority.java
// public enum InteractorPriority {
//   LOW(1),
//   MEDIUM(50),
//   HIGH(100),
//   URGENT(200);
// 
//   private int priority;
// 
//   InteractorPriority(int priority) {
//     this.priority = priority;
//   }
// 
//   public int getPriorityValue() {
//     return priority;
//   }
// }


// Path: app/src/main/java/sergio/vasco/realmforandroid/app/domain/InteractorInvokerImp.java
import com.path.android.jobqueue.Job;
import com.path.android.jobqueue.JobManager;
import com.path.android.jobqueue.Params;
import sergio.vasco.androidforexample.domain.interactors.Interactor;
import sergio.vasco.androidforexample.domain.interactors.InteractorInvoker;
import sergio.vasco.androidforexample.domain.interactors.InteractorPriority;

package sergio.vasco.realmforandroid.app.domain;


/**
 * Created by Sergio Martinez Rodriguez
 * Date 31/3/15.
 */
public class InteractorInvokerImp implements InteractorInvoker {

  private JobManager jobManager;

  public InteractorInvokerImp(JobManager jobManager) {
    this.jobManager = jobManager;
  }

  @Override public void execute(Interactor interactor) {