Examples of notify()


Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedBoolean.notify()

                catch (Exception e) {
                    e.printStackTrace();
                }
                synchronized (success) {
                    success.set(true);
                    success.notify();
                }
            }
        });
        t.start();
        queue.close();
View Full Code Here

Examples of EDU.oswego.cs.dl.util.concurrent.SynchronizedInt.notify()

                        connection.start();
                       
                       
                        if (count.increment() >= NUMBER){
                            synchronized(count){
                                count.notify();
                            }
                        }
                    }
                    catch (Exception ex) {
                        ex.printStackTrace();
View Full Code Here

Examples of civquest.units.gameChange.ConstructUnit.notify()

          }
          ConstructUnit constructUnit
            = new ConstructUnit(manager.getRestrictedToNation(),
                      mapData.getMapObjectPosition(unitID),
                      mapData.getMapObjectOwner(unitID));
          constructUnit.notify(before, after);
        } else {
          // do nothing, nothing is visible
        }
      }
    }
View Full Code Here

Examples of civquest.units.gameChange.RemoveUnit.notify()

        if (manager.isCompleteVisible(to)) {
          moveUnit.notify(manager.getRestrictedToNation(), before, after);
        } else {
          RemoveUnit removeUnit = new RemoveUnit(manager.getRestrictedToNation(),
                               unitID);
          removeUnit.notify(before, after);
          if (before) {
            manager.removeForeignUnit(unitID);
          }
        }
      } else {
View Full Code Here

Examples of com.alibaba.dubbo.registry.NotifyListener.notify()

                    for (Map<NotifyListener, List<URL>> values : failed.values()) {
                        for (Map.Entry<NotifyListener, List<URL>> entry : values.entrySet()) {
                            try {
                                NotifyListener listener = entry.getKey();
                                List<URL> urls = entry.getValue();
                                listener.notify(urls);
                                values.remove(listener);
                            } catch (Throwable t) { // 忽略所有异常,等待下次重试
                                logger.warn("Failed to retry notify " + failed + ", waiting for again, cause: " + t.getMessage(), t);
                            }
                        }
View Full Code Here

Examples of com.alibaba.dubbo.registry.integration.RegistryDirectory.notify()

        // ignore error log
        URL badurl = URL.valueOf("notsupported://127.0.0.1/" + service);
        serviceUrls.add(badurl);
        serviceUrls.add(SERVICEURL);

        registryDirectory.notify(serviceUrls);
        Assert.assertEquals(true, registryDirectory.isAvailable());
        List invokers = registryDirectory.list(invocation);
        Assert.assertEquals(1, invokers.size());
    }
View Full Code Here

Examples of com.alibaba.dubbo.rpc.RpcStatus.notify()

                throw t;
            }
        } finally {
            if(max>0){
                synchronized (count) {
                    count.notify();
                }
            }
        }
    }
View Full Code Here

Examples of com.arjuna.ats.internal.arjuna.coordinator.ReaperElement.notify()

/*      */
/*  562 */       synchronized (e)
/*      */       {
/*  564 */         e._worker = Thread.currentThread();
/*  565 */         e._status = 2;
/*  566 */         e.notify();
/*      */       }
/*      */
/*      */       try
/*      */       {
/*  575 */         if (e._control.running())
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.IncorrectnessListener.notify()

     * @param message the notification to send to the registered {@link IncorrectnessListener}
     */
    protected void notifyIncorrectness(final String message) {
        final WebClient client = getPage().getEnclosingWindow().getWebClient();
        final IncorrectnessListener incorrectnessListener = client.getIncorrectnessListener();
        incorrectnessListener.notify(message, this);
    }

    /**
     * Adds a {@link DomChangeListener} to the listener list. The listener is registered for
     * all descendants of this node.
View Full Code Here

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

                return;
            }
            if (isError) {
                response = getSerializationService().toObject(response);
            }
            future.notify(response);
        }
    }


    public class ManagerAuthenticator implements Authenticator {
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.