/** * Create a new empty set of parameters for this request. The old * set of parameters will still be valid, but will no longer be * part of this request. This method may be used to allow earlier * garbage collection of large parameters that are no longer * needed. While the obvious use of this method is to get rid of * parameters when being an RPC server it can also be used after * starting an RPC request on a client. **/ public void discardParameters() { parameters = new Values(); }
public ReplyPacket(int flags, int reqId, ByteBuffer src) { super(flags, reqId); returnValues = new Values(src); }
/** * Create a new Request with the given method name. * * @param methodName name of the method you want to invoke **/ public Request(String methodName) { this(methodName, new Values()); }
public RequestPacket(int flags, int reqId, ByteBuffer src) { super(flags, reqId); methodName = new StringValue(src); parameters = new Values(src); }