PersistentPeerpublic 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 PersistentPeerPersistenceException - if an error occurs during restorepublic void save()
throws PersistenceException
save in interface PersistentPeerPersistenceException - if a problem occurs in savingpublic void setPersistent(Persistent ob)
setPersistent in interface PersistentPeerob - the implementation of com.planet_ink.coffee_mud.core.intermud.i3.persist.Persistent that this is a peer forPersistentpublic boolean isRestoring()
isRestoring in interface PersistentPeer