net.dongliu.prettypb.runtime.include.RpcCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of prettypb-include Show documentation
Show all versions of prettypb-include Show documentation
necessary lib for proto beans compile
The newest version!
package net.dongliu.prettypb.runtime.include;
/**
* interface for async rpc callback
*
* @author Dong Liu
*/
public interface RpcCallback {
/**
* called when rpc finished
*
* @param value the result
*/
void onFinished(T value);
/**
* when rpc error occurred
*/
void onError(Exception e);
}