|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.admin.client.ConfigObjectManager.ConfigObjectSubscriber
protected class ConfigObjectManager.ConfigObjectSubscriber
This class takes care of the details of subscribing to and placing an individual ConfigObject that the server knows about into a HashMap.
| Field Summary | |
|---|---|
protected ConfigObject |
_cobj
The object that we are tracking. |
protected String |
_key
The name of the config object to which we are subscribing. |
protected int |
_oid
The oid of the object that we're tracking. |
| Constructor Summary | |
|---|---|
protected |
ConfigObjectManager.ConfigObjectSubscriber()
|
| Method Summary | |
|---|---|
void |
cleanup()
Signals that we should stop subscribing to our ConfigObject, and flush out the entry from the serverconfig map. |
void |
objectAvailable(ConfigObject object)
Called when a subscription request has succeeded and the object is available. |
void |
requestFailed(int oid,
ObjectAccessException cause)
Called when a subscription request has failed. |
void |
subscribeConfig(String key,
int oid)
This method requests that we place a subscription to the ConfigObject with the given oid, identified by the key; when the object becomes available, it's added to our serverconfig map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConfigObject _cobj
protected String _key
protected int _oid
| Constructor Detail |
|---|
protected ConfigObjectManager.ConfigObjectSubscriber()
| Method Detail |
|---|
public void subscribeConfig(String key,
int oid)
public void objectAvailable(ConfigObject object)
SubscriberDObject.addListener(com.threerings.presents.dobj.ChangeListener)).
objectAvailable in interface Subscriber<ConfigObject>DObjectManager.subscribeToObject(int, com.threerings.presents.dobj.Subscriber)
public void requestFailed(int oid,
ObjectAccessException cause)
SubscriberObjectAccessException.
requestFailed in interface Subscriber<ConfigObject>DObjectManager.subscribeToObject(int, com.threerings.presents.dobj.Subscriber) public void cleanup()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||