com.threerings.presents.peer.server
Class PeerManager.NodeRequest

java.lang.Object
  extended by com.threerings.presents.peer.server.PeerManager.NodeRequest
All Implemented Interfaces:
Streamable, Streamable.Closure, PeerManager.NodeApplicant
Enclosing class:
PeerManager

public abstract static class PeerManager.NodeRequest
extends Object
implements Streamable.Closure, PeerManager.NodeApplicant

Encapsulates code that is meant to be executed one or more servers and return a result.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.threerings.io.Streamable
Streamable.Closure
 
Constructor Summary
PeerManager.NodeRequest()
           
 
Method Summary
protected abstract  void execute(InvocationService.ResultListener listener)
           
 void invoke(InvocationService.ResultListener listener)
          Invokes the action on the target server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.threerings.presents.peer.server.PeerManager.NodeApplicant
isApplicable
 

Constructor Detail

PeerManager.NodeRequest

public PeerManager.NodeRequest()
Method Detail

invoke

public void invoke(InvocationService.ResultListener listener)
Invokes the action on the target server.


execute

protected abstract void execute(InvocationService.ResultListener listener)