Package org.cspoker.common.api.shared.event

Examples of org.cspoker.common.api.shared.event.EventId


    File output = new File(baseDir,"http.xml");
    Marshaller marschaller = AllJAXBContexts.context.createMarshaller();
    marschaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    marschaller.setProperty(Marshaller.JAXB_FRAGMENT, true);

    EventId eid1 = new EventId(42);
    EventId eid2 = new EventId(43);
   
    TableId tid = new TableId(1337);
   
    Queue<DispatchableAction<?>> queue = new LinkedList<DispatchableAction<?>>();
    SitInAnywhereAction action1 = new SitInAnywhereAction(eid1,tid,6500);
View Full Code Here


      throws RemoteException, LoginException {
    XmlActionSerializer serializer = createXmlActionSerializer(username,password);
    XmlServerListenerTree listenerTree = new XmlServerListenerTree();
    CallSynchronizer callSynchronizer = new CallSynchronizer(listenerTree,serializer);
    try {
      callSynchronizer.perform(new LoginAction(new EventId(), username, password));
    } catch (IllegalActionException exception) {
      throw new LoginException(exception.getMessage());
    }
    return new XmlRemoteServerContext(callSynchronizer,listenerTree);
  }
View Full Code Here

public class IDGenerator {

  AtomicLong id = new AtomicLong(0);
 
  public EventId getNextID(){
    return new EventId(id.incrementAndGet());
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.shared.event.EventId

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.