DObjectManager: added unsubscribeFromObject() for subscribers that wish to

unsubscribe in the absence of a reference to the object in question and
potentially from an unsavory thread.

Client, ClientManager, etc.: Further work on the server-side of the
distributed part of the distributed object functionality.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@27 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-06-05 22:44:31 +00:00
parent 03e2dbc9cb
commit 029712985e
8 changed files with 323 additions and 29 deletions
@@ -1,5 +1,5 @@
//
// $Id: FetchRequest.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
// $Id: FetchRequest.java,v 1.3 2001/06/05 22:44:31 mdb Exp $
package com.threerings.cocktail.cher.net;
@@ -34,6 +34,14 @@ public class FetchRequest extends UpstreamMessage
return TYPE;
}
/**
* Returns the oid of the object we desire to fetch.
*/
public int getOid ()
{
return _oid;
}
public void writeTo (DataOutputStream out)
throws IOException
{
@@ -1,5 +1,5 @@
//
// $Id: ForwardEventRequest.java,v 1.5 2001/06/05 21:29:51 mdb Exp $
// $Id: ForwardEventRequest.java,v 1.6 2001/06/05 22:44:31 mdb Exp $
package com.threerings.cocktail.cher.net;
@@ -35,6 +35,14 @@ public class ForwardEventRequest extends UpstreamMessage
return TYPE;
}
/**
* Returns the event that we wish to have forwarded.
*/
public DEvent getEvent ()
{
return _event;
}
public void writeTo (DataOutputStream out)
throws IOException
{
@@ -1,5 +1,5 @@
//
// $Id: SubscribeRequest.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
// $Id: SubscribeRequest.java,v 1.3 2001/06/05 22:44:31 mdb Exp $
package com.threerings.cocktail.cher.net;
@@ -34,6 +34,14 @@ public class SubscribeRequest extends UpstreamMessage
return TYPE;
}
/**
* Returns the oid of the object to which we desire subscription.
*/
public int getOid ()
{
return _oid;
}
public void writeTo (DataOutputStream out)
throws IOException
{
@@ -1,5 +1,5 @@
//
// $Id: UnsubscribeRequest.java,v 1.3 2001/06/05 21:29:51 mdb Exp $
// $Id: UnsubscribeRequest.java,v 1.4 2001/06/05 22:44:31 mdb Exp $
package com.threerings.cocktail.cher.net;
@@ -34,6 +34,14 @@ public class UnsubscribeRequest extends UpstreamMessage
return TYPE;
}
/**
* Returns the oid of the object from which we are unsubscribing.
*/
public int getOid ()
{
return _oid;
}
public void writeTo (DataOutputStream out)
throws IOException
{