Examples of WaitHook


Examples of de.scoopgmbh.copper.WaitHook

  private static final long serialVersionUID = 1L;
 
  @Override
  public void main() throws InterruptException {
    wait(WaitMode.ALL,50, TimeUnit.MILLISECONDS,getEngine().createUUID());
    getEngine().addWaitHook(this.getId(), new WaitHook() {
      @Override
      public void onWait(Workflow<?> wf, Connection con) throws Exception {
        throw new RuntimeException("TEST Exception");
      }
    });
View Full Code Here

Examples of de.scoopgmbh.copper.WaitHook

  private void callFooWithWaitHook() throws InterruptException {
    final String cid = getEngine().createUUID();
    mockAdapter.foo(getData(), cid);

    dataHolder.clear(cid);
    getEngine().addWaitHook(this.getId(), new WaitHook() {
      @Override
      public void onWait(Workflow<?> wf, Connection con) throws Exception {
        assertNotNull(wf);
        assertNotNull(con);
        dataHolder.put(cid,wf.getId());
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.