rpcfy.RPCStub Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpcfy-annotations Show documentation
Show all versions of rpcfy-annotations Show documentation
RPCfy upgrades your normal java interface to be capable of doing RPC (Remote Procedure Call).
package rpcfy;
/**
* Represents a remote stub. This will be implemented by the RPCfy generated Stub classes.
*
* When an interface is marked as {@link rpcfy.annotations.RPCfy}, an {@link RPCStub} for it will
* be auto generated named as XXXX_JsonRpcStub.
*
* @see rpcfy.annotations.RPCfy
*/
public interface RPCStub {
/**
* Returns the interface name that this stub implements
*/
String getStubInterfaceName();
/**
* Returns the id of this stub if any
*/
int getStubId();
/**
* Called to deliver the message from the proxy.
*
* @param methodId The id of the method being called
* @param message The JSON RPC message
* @return Returns the JSON RPC response
*/
String onRPCCall(int methodId, String message);
/**
* Returns the service that this stub wraps
\ */
Object getService();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy