Package org.cspoker.common.api.shared

Examples of org.cspoker.common.api.shared.Trigger


  public XmlRemoteHoldemTableContext(ActionPerformer performer, IDGenerator generator, TableId tableID, XmlServerListenerTree serverListenerTree, Trigger staleTableContextTrigger) {
    this.performer = performer;
    this.generator = generator;
    this.tableID = tableID;
    this.serverListenerTree = serverListenerTree;
    stalePlayerContextTrigger = new Trigger(){
      public void trigger() {
        playerContext.set(null);
      }
    };
    this.staleTableContextTrigger = staleTableContextTrigger;
View Full Code Here


  }

  public RemoteHoldemTableContext joinHoldemTable(final TableId tableID,
      HoldemTableListener holdemTableListener) throws RemoteException,
      IllegalActionException {
    Trigger staleTableContext = new Trigger(){
      public void trigger() {
        contexts.remove(tableID);
      }
    };
    XmlRemoteHoldemTableContext context = new XmlRemoteHoldemTableContext(performer,generator,tableID, serverListenerTree,staleTableContext);
View Full Code Here

  private Trigger connectionLost;

  public UnremoteServerContext(ServerContext serverContext) {
    super(serverContext);
    this.connectionLost = new Trigger(){
      public void trigger() {
        logout();
      }
    };
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.shared.Trigger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.