Examples of notify()


Examples of com.hazelcast.client.spi.impl.ClientCallFuture.notify()

        }
        final Iterator<ClientCallFuture> iterator = eventHandlerMap.values().iterator();
        while (iterator.hasNext()) {
            final ClientCallFuture future = iterator.next();
            iterator.remove();
            future.notify(response);
        }
    }

    public void close(Throwable t) {
        if (!live) {
View Full Code Here

Examples of com.hp.hpl.jena.query.QueryExecution.notify()

        "SELECT * {?s ?p ?o . FILTER ex:wait(100) }") ;
        CancelThreadRunner thread = new CancelThreadRunner(qExec);
        thread.start();
        synchronized (qExec) { qExec.wait() ; }
        qExec.abort();
        synchronized (qExec) { qExec.notify() ; }
        assertEquals (1, thread.getCount()) ;
    }
   
    @Test public void test_Cancel_API_4() throws InterruptedException
    {
View Full Code Here

Examples of com.izforge.izpack.event.CompilerListener.notify()

        Iterator<CompilerListener> i = compilerListeners.iterator();
        IPackager packager = compiler.getPackager();
        while (i != null && i.hasNext())
        {
            CompilerListener listener = i.next();
            listener.notify(callerName, state, data, packager);
        }

    }

    /**
 
View Full Code Here

Examples of com.squareup.pagerduty.incidents.PagerDuty.notify()

                        .withIncidentKey(incidentKey(check))
                        .client("Seyren")
                        .clientUrl(url(check))
                        .addDetails(details(check, alerts))
                        .build();
                result = pagerDuty.notify(trigger);
            } else if (check.getState() == AlertType.OK) {
                Resolution resolution = new Resolution.Builder(incidentKey(check))
                        .withDescription("Check '" + check.getName() + "' has been resolved.")
                        .addDetails(details(check, alerts))
                        .build();
View Full Code Here

Examples of com.sun.messaging.jmq.util.txnlog.TransactionLogRecord.notify()

      // wake up waiting thread
  //    log("synchronized (entry) ");
      synchronized (entry) {
  //      log("notifying entry ");
        entry.setWritten(true);
        entry.notify();
      }

      return;
    }
View Full Code Here

Examples of com.sun.messaging.jmq.util.txnlog.TransactionLogRecord.notify()

      TransactionLogRecord e = records[i];
  //    log("synchronized (entry) ");
      synchronized (e) {
  //      log("notifying entry ");
        e.setWritten(true);
        e.notify();
      }
    }

  }
   
View Full Code Here

Examples of de.scoopgmbh.copper.persistent.PersistentScottyEngine.notify()

      new RetryingTransaction<Void>(context.getBean(DataSource.class)) {
        @Override
        protected Void execute() throws Exception {
          try {
            Response<?> response = new Response<String>("CID#withEarlyResponse", "TEST", null);
            engine.notify(response, getConnection());
            Statement stmt = createStatement(getConnection());
            ResultSet rs = stmt.executeQuery("select * from cop_response");
            assertTrue(rs.next());
            assertEquals(response.getCorrelationId(), rs.getString("CORRELATION_ID"));
            assertFalse(rs.next());
View Full Code Here

Examples of de.scoopgmbh.copper.persistent.PersistentScottyEngine.notify()

            assertFalse(rs.next());
            getConnection().rollback();

            response = new Response<String>("CID#withoutEarlyResponse", "TEST", null);
            response.setEarlyResponseHandling(false);
            engine.notify(response, getConnection());
            rs = stmt.executeQuery("select * from cop_response");
            assertFalse(rs.next());
            rs.close();
            stmt.close();
            getConnection().rollback();
View Full Code Here

Examples of dovetaildb.util.MutableInt.notify()

      }
      synchronized(val)  {
        int curVal = val.get();
        if (curVal == -1) {
          val.set(0);
          val.notify();
        } else {
          val.decr();
          if (curVal == 1)
          val.notify();
        }
View Full Code Here

Examples of edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean.notify()

                            assertTrue(b[i] == TEST_DATA);
                        }
                    }
                    complete.set(true);
                    synchronized(complete){
                        complete.notify();
                    }
                }
                catch (Exception ex) {
                    ex.printStackTrace();
                }
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.