Package com.genesys.wsclient

Examples of com.genesys.wsclient.GenesysEventReceiver


        .create();

    // Optional: do a dummy request in order to get a session cookie
    client.createRequest("GET", "/api/v2/diagnostics/version").execute();

    GenesysEventReceiver eventReceiver = client.setupEventReceiver()
        .eventExecutor(eventExecutor)
        .create();
   
    eventReceiver.open();

    EventSubscription subscription = eventReceiver.subscribeAll(new GenesysEventListener() {
      @Override public void eventReceived(GenesysEvent event) {
        System.err.println(
          "Handling event received from channel " + event.getChannel()
          + " in thread " + Thread.currentThread().getName()
          + " with content " + event.getContent());
View Full Code Here


      .credentials(TestParams.USERNAME, TestParams.PASSWORD)
      .create();

    client.createRequest("GET", "/api/v2/diagnostics/version").execute();

    GenesysEventReceiver eventReceiver = client.setupEventReceiver()
      .eventExecutor(dummyExecutor)
      .create();

    eventReceiver.subscribeAll(new GenesysEventListener() {
    @Override public void eventReceived(GenesysEvent event) {}
    });
 
    eventReceiver.open();
   
    Thread.sleep(30000000);
  }
View Full Code Here

    GenesysClient client = new GenesysClient.Setup()
      .serverUri("http://nonexistanthostanywhere")
      .credentials(TestParams.USERNAME, TestParams.PASSWORD)
      .create();

    GenesysEventReceiver eventReceiver = client.setupEventReceiver()
      .eventExecutor(dummyExecutor)
      .create();

    eventReceiver.open();
  }
View Full Code Here

    GenesysClient client = new GenesysClient.Setup()
      .serverUri("http://nonexistanthostanywhere")
      .credentials(TestParams.USERNAME, TestParams.PASSWORD)
      .create();

    GenesysEventReceiver eventReceiver = client.setupEventReceiver()
      .eventExecutor(dummyExecutor)
      .create();

    eventReceiver.close();
  }
View Full Code Here

TOP

Related Classes of com.genesys.wsclient.GenesysEventReceiver

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.