All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.squareup.tape.Task Maven / Gradle / Ivy

The newest version!
// Copyright 2012 Square, Inc.
package com.squareup.tape;

import java.io.Serializable;

/**
 * An idempotent task that can be enqueued, persisted (using serialization),
 * and executed at a later time.
 *
 * @param  The type of callback.
 */
public interface Task extends Serializable {

  /**
   * Executes this task. The members of this task instance have been injected
   * prior to calling this method.
   *
   * @param callback to report result to
   */
  void execute(T callback);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy