Get the transport specification out of the construction path, since it's not a
streamed property of the event. It turns out to be cleaner to just set it in the places where we know that we want a specific transport anyway. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
package com.threerings.presents.dobj;
|
||||
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
import com.threerings.presents.net.Transport;
|
||||
|
||||
/**
|
||||
@@ -41,17 +40,23 @@ public class InvocationResponseEvent extends DEvent
|
||||
* @param methodId the method to be invoked.
|
||||
* @param args the arguments for the method. This array should contain only values of valid
|
||||
* distributed object types.
|
||||
* @param transport a hint as to the type of transport desired for the event.
|
||||
*/
|
||||
public InvocationResponseEvent (
|
||||
int targetOid, int requestId, int methodId, Object[] args, Transport transport)
|
||||
public InvocationResponseEvent (int targetOid, int requestId, int methodId, Object[] args)
|
||||
{
|
||||
super(targetOid, transport);
|
||||
super(targetOid);
|
||||
_requestId = (short)requestId;
|
||||
_methodId = (byte)methodId;
|
||||
_args = args;
|
||||
}
|
||||
|
||||
/** @deprecated Regenerate your services. */
|
||||
@Deprecated
|
||||
public InvocationResponseEvent (int targetOid, int requestId, int methodId, Object[] args,
|
||||
Transport transport)
|
||||
{
|
||||
this(targetOid, requestId, methodId, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the invocation request id associated with this response.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user