Examples of UniversalServerListener


Examples of org.cspoker.common.api.shared.listener.UniversalServerListener

  }

  public void login(LoginAction action) {
    try {
      serverContext = new XmlServerContext(cspokerServer.login(action.getUsername(), action.getPasswordHash()),
          new UniversalServerListener(
              new ServerEventListener(){
                public void onServerEvent(ServerEvent event) {
                  send(event);
                }
              }   
View Full Code Here

Examples of org.cspoker.common.api.shared.listener.UniversalServerListener

        public Pair<StaticServerContext, Queue<ServerEvent>> create() throws LoginException {
          ServerContext serverContext = cspokerServer.login(credentials.getLeft(), credentials.getRight());
          final ConcurrentLinkedQueue<ServerEvent> eventQueue = new ConcurrentLinkedQueue<ServerEvent>();
          StaticServerContext staticServerContext = new XmlServerContext(serverContext,
              new UniversalServerListener(
                  new ServerEventListener(){

                    public void onServerEvent(ServerEvent event) {
                      eventQueue.offer(event);
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.