Provide a convenient method for indicating that a listener does not
need to be responded to. It turns out that a listener may not be a marshaller if a server entity is calling a service request method directly. The convenience method handles this and is also cleaner looking for callers. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3832 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -237,6 +237,17 @@ public class InvocationMarshaller
|
||||
return _invCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* A convenience method to indicate that the listener is not going
|
||||
* to be responded-to, and that this is ok.
|
||||
*/
|
||||
public static void setNoResponse (InvocationListener listener)
|
||||
{
|
||||
if (listener instanceof ListenerMarshaller) {
|
||||
((ListenerMarshaller) listener).setNoResponse();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called by generated invocation marshaller code; packages up and
|
||||
* sends the specified invocation service request.
|
||||
|
||||
Reference in New Issue
Block a user