
net.sf.weixinmp.http.dialog.base.support.Operation Maven / Gradle / Ivy
The newest version!
package net.sf.weixinmp.http.dialog.base.support;
import java.util.Map;
/**
* represent the details business in each request, will be invoked by
* {@link WebSession}
*
* @author [email protected]
* @date 3/7/2016
* @param
*/
public interface Operation extends Runnable {
public void setContext(final Map context);
/**
* identity tag for ignoring exception when {@link Operation#run()} occur
* error in runtime. if this value is True, that's mean the next
* {@link Operation} in group {@link Operations} will still be invoked.
*
* @return boolean
*/
public boolean isContinueWhenError();
/**
* get operation result when finished
*
* @return T
*/
public T getResult();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy