org.starhope.appius.game.npc
Class BraqueNPCManager

java.lang.Object
  extended by org.starhope.appius.game.npc.BraqueNPCManager
All Implemented Interfaces:
com.sun.sgs.app.ManagedObject, com.sun.sgs.app.Task, Serializable

public class BraqueNPCManager
extends Object
implements com.sun.sgs.app.Task, Serializable, com.sun.sgs.app.ManagedObject

This behavior allows you to write your code as if the server were always up, with the caveat that you do have to check elapsed time in your periodic task's run method if a delay between that and the last time it was run has significance to your logic.

Author:
brpocock
See Also:
Serialized Form

Field Summary
private  long lastTimestamp
           
private static Logger logger
          The Logger for this class.
private static long serialVersionUID
          The version of the serialized form of this class.
 
Constructor Summary
BraqueNPCManager()
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logger logger
The Logger for this class.


serialVersionUID

private static final long serialVersionUID
The version of the serialized form of this class.

See Also:
Constant Field Values

lastTimestamp

private long lastTimestamp
Constructor Detail

BraqueNPCManager

public BraqueNPCManager()
Method Detail

run

public void run()
         throws Exception
Specified by:
run in interface com.sun.sgs.app.Task
Throws:
Exception
See Also:
Task.run()