|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the type object being subscribed to.public interface Subscriber<T extends DObject>
A subscriber is an entity that has access to a distributed object. The process of obtaining access to a distributed object is an asynchronous one, and changes made to an object are delivered asynchronously. By registering as a subscriber to an object, an entity can react to changes made to an object and ensure that their object is kept up to date.
To actually receive callbacks when events are dispatched on a distributed object, an entity should register itself as a listener on the object once it has received its object reference.
EventListener,
AttributeChangeListener,
SetListener,
OidListListener| Method Summary | |
|---|---|
void |
objectAvailable(T 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. |
| Method Detail |
|---|
void objectAvailable(T object)
DObject.addListener(com.threerings.presents.dobj.ChangeListener)).
DObjectManager.subscribeToObject(int, com.threerings.presents.dobj.Subscriber)
void requestFailed(int oid,
ObjectAccessException cause)
ObjectAccessException.
DObjectManager.subscribeToObject(int, com.threerings.presents.dobj.Subscriber)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||