com.sdklite.rpc.RpcMessage Maven / Gradle / Ivy
package com.sdklite.rpc;
/**
* Represents the message in RPC
*
* @author johnsonlee
*
*/
public interface RpcMessage {
/**
* Returns the RPC URL
*/
public String getUrl();
/**
* Instantialize a RPC message builder
*
* @return an instance of {@link RpcMessage}
*/
public Builder newBuilder();
/**
* Represents the builder of {@link RpcMessage}
*
* @author johnsonlee
*
*/
public interface Builder {
/**
* Instantialize a RPC message
*
* @return an instance of {@link RpcMessage}
*/
public RpcMessage build();
}
}