Examples of notify()


Examples of org.hsqldb.lib.Notified.notify()

                    removed = databases.remove(db);
                }
            }

            if (removed) {
                server.notify(db.databaseID);
            }
        }
    }

    static boolean isServerDB(Database db) {
View Full Code Here

Examples of org.hsqldb.server.Server.notify()

        for (; it.hasNext(); ) {
            Server  server    = (Server) it.next();
            HashSet databases = (HashSet) serverMap.get(server);

            if (databases.contains(db)) {
                server.notify(ServerConstants.SC_DATABASE_SHUTDOWN,
                              db.databaseID);
            }
        }
    }
View Full Code Here

Examples of org.jboss.aspects.currentinvocation.test.basic.PojoBean.notify()

      TestCase.assertEquals("Scoping of CurrentInvocation is not limited per Thread", null, CurrentInvocation
            .getCurrentInvocation());
     
      // Let the other Thread complete
      synchronized(bean){
         bean.notify();
      }
     
      // Wait for other thread to die
      try
      {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.notify()

                }
                @Override
                public void handleResultComplete() {
                    synchronized(failureResult) {
                        status.compareAndSet(0, 1);
                        failureResult.notify();
                    }
                }
                @Override
                public void handleFailed(ModelNode failureDescription) {
                    synchronized(failureResult) {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.notify()

                    if (status.compareAndSet(0, 3)) {
                        if (failureDescription != null && failureDescription.isDefined()) {
                            finalResult.get(FAILURE_DESCRIPTION).set(failureDescription);
                        }
                    }
                    finalResult.notify();
                }
            }

            @Override
            public void handleCancellation() {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.notify()

            public void handleCancellation() {
                synchronized (finalResult) {
                    if (status.compareAndSet(0, 2)) {
                        finalResult.remove(RESULT);
                    }
                    finalResult.notify();
                }
            }
        };
        final OperationResult handlerResult = controller.execute(operation, resultHandler, handback);
        boolean intr = false;
View Full Code Here

Examples of org.jboss.dna.graph.observe.Observer.notify()

            Runnable sender = new Runnable() {
                public void run() {
                    while (observerIterator.hasNext()) {
                        Observer observer = observerIterator.next();
                        assert observer != null;
                        observer.notify(changes);
                    }
                }
            };

            // Now let the executor service run this in another thread ...
View Full Code Here

Examples of org.jboss.messaging.core.contract.ClusterNotificationListener.notify()

   
    while (iter.hasNext())
    {
      final ClusterNotificationListener listener = (ClusterNotificationListener)iter.next();
     
      listener.notify(notification);
    }
  }

  public void unregisterListener(ClusterNotificationListener listener)
  {
View Full Code Here

Examples of org.jbpm.api.listener.EventListener.notify()

       
        EventListener eventListener = eventListenerReference.get();
       
        log.trace("executing "+eventListener+" for "+this);
        try {
          eventListener.notify(execution);
        } catch (RuntimeException e) {
          throw e;
        } catch (Exception e) {
          throw new JbpmException("couldn't execute "+eventListener, e);
        }
View Full Code Here

Examples of org.jbpm.job.executor.JobExecutor.notify()

    if ( (hasProducedJobs)
         && (jobExecutor!=null)
       ) {
      log.debug("messages were produced the jobExecutor will be signalled");
      synchronized(jobExecutor) {
        jobExecutor.notify();
      }
    }
  }
 
  private static Log log = LogFactory.getLog(DbMessageService.class);
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.