Package org.cspoker.common.api.shared.action

Examples of org.cspoker.common.api.shared.action.TableChatInterestAction


  public RemoteChatContext getTableChatContext(ChatListener chatListener,
      TableId tableID) throws RemoteException, IllegalActionException {
    XmlRemoteTableChatContext context = new XmlRemoteTableChatContext(performer,generator,tableID);
    if(tableChatContexts.putIfAbsent(tableID, context)==null){
      serverListenerTree.setTableChatListener(tableID, chatListener);
      performer.perform(new TableChatInterestAction(generator.getNextID(),tableID));
      return context;
    }else{
      throw new IllegalActionException("Already registered a chat listener for table #"+tableID+".");
    }
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.shared.action.TableChatInterestAction

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.