PersistentPeer
public class IMudPeer extends java.lang.Object implements PersistentPeer
Constructor | Description |
---|---|
IMudPeer() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
isRestoring() |
An implementation uses this to tell its Persistent
that it is in the middle of restoring.
|
void |
restore() |
Gets data about this peer from storage and gives it
back to the object for which this peer exists.
|
void |
save() |
Triggers a save of its peer.
|
void |
setPersistent(Persistent ob) |
Assigns a persistent object to this peer for
persistence operations.
|
public void restore() throws PersistenceException
restore
in interface PersistentPeer
PersistenceException
- if an error occurs during restorepublic void save() throws PersistenceException
save
in interface PersistentPeer
PersistenceException
- if a problem occurs in savingpublic void setPersistent(Persistent ob)
setPersistent
in interface PersistentPeer
ob
- the implementation of com.planet_ink.coffee_mud.core.intermud.i3.persist.Persistent that this is a peer forPersistent
public boolean isRestoring()
isRestoring
in interface PersistentPeer