Skip to content

Instantly share code, notes, and snippets.

@shirish87
Created November 24, 2014 03:09
Show Gist options
  • Save shirish87/daeb785447a182272b4d to your computer and use it in GitHub Desktop.
Save shirish87/daeb785447a182272b4d to your computer and use it in GitHub Desktop.
public interface SerialOp<T, U> {
public SerialHandler getHandler();
public void setHandler(SerialHandler handler);
public abstract void execute(T arg1, U arg2);
public void onSuccess();
public void onFailure(FailureType type, String reason);
public void onComplete();
public long getTimeout();
public String getTag();
public boolean autoDequeue();
public boolean ignoreErrors();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment