Specifically ACK unsubscribe requests so that we don't see a bunch of

warning messages saying that we couldn't deliver events on the client that
come in after all client-side subscribers have been removed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2204 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-01-21 22:02:37 +00:00
parent ce85e2a157
commit 8bafb6fd32
3 changed files with 69 additions and 11 deletions
@@ -0,0 +1,40 @@
//
// $Id: UnsubscribeResponse.java,v 1.1 2003/01/21 22:02:37 mdb Exp $
package com.threerings.presents.net;
/**
* Used to communicate to the client that we received their unsubscribe
* request and that it is now OK to remove an object mapping from their
* local object table.
*/
public class UnsubscribeResponse extends DownstreamMessage
{
/**
* Zero argument constructor used when unserializing an instance.
*/
public UnsubscribeResponse ()
{
super();
}
/**
* Constructs an unsubscribe response with the supplied oid.
*/
public UnsubscribeResponse (int oid)
{
_oid = oid;
}
public int getOid ()
{
return _oid;
}
public String toString ()
{
return "[type=UNACK, msgid=" + messageId + ", oid=" + _oid + "]";
}
protected int _oid;
}