public abstract class PeeredZoneRegistry extends ZoneRegistry
| Modifier and Type | Class and Description |
|---|---|
static class |
PeeredZoneRegistry.PeerZoneMoveHandler
A ZoneMoveHandler that can receive the sceneOnNode() callback.
|
static interface |
PeeredZoneRegistry.PeerZoneResolutionListener
Peer-awareness for finding out about zones.
|
static interface |
PeeredZoneRegistry.PeerZoneShutdownListener
Peered zones should be sure to call back to one of these when they're going away.
|
| Constructor and Description |
|---|
PeeredZoneRegistry(com.threerings.presents.server.InvocationManager invmgr,
ZonePeerManager peerMgr) |
| Modifier and Type | Method and Description |
|---|---|
PeeredZoneManager |
getZoneManager(int qualifiedZoneId)
Returns the zone manager that handles the specified zone id.
|
void |
moveTo(com.threerings.presents.data.ClientObject caller,
int zoneId,
int sceneId,
int sceneVer,
ZoneService.ZoneMoveListener listener)
|
void |
registerZoneManager(byte zoneType,
ZoneManager manager)
Registers the supplied zone manager as the manager for the specified zone type.
|
void |
resolvePeerZone(int zoneId,
PeeredZoneRegistry.PeerZoneResolutionListener listener)
Resolve a zone, or return the information on the peer on which it's hosted.
|
void |
resolveZone(int zoneId,
ZoneManager.ResolutionListener listener) |
void |
zoneDidShutdown(int zoneId)
Pass on that the zone has shutdown.
|
leaveOccupiedZone, moveBody@Inject
public PeeredZoneRegistry(com.threerings.presents.server.InvocationManager invmgr,
ZonePeerManager peerMgr)
public void registerZoneManager(byte zoneType,
ZoneManager manager)
ZoneRegistryregisterZoneManager in class ZoneRegistrypublic PeeredZoneManager getZoneManager(int qualifiedZoneId)
ZoneRegistrygetZoneManager in class ZoneRegistryqualifiedZoneId - the qualified zone id for which the manager should be looked up.public void moveTo(com.threerings.presents.data.ClientObject caller,
int zoneId,
int sceneId,
int sceneVer,
ZoneService.ZoneMoveListener listener)
throws com.threerings.presents.server.InvocationException
ZoneProviderZoneService.moveTo(int, int, int, com.threerings.whirled.zone.client.ZoneService.ZoneMoveListener) request.moveTo in interface ZoneProvidermoveTo in class ZoneRegistrycom.threerings.presents.server.InvocationExceptionpublic void resolveZone(int zoneId,
ZoneManager.ResolutionListener listener)
public void resolvePeerZone(int zoneId,
PeeredZoneRegistry.PeerZoneResolutionListener listener)
public void zoneDidShutdown(int zoneId)
Copyright © 2015. All rights reserved.