Package rice.p2p.commonapi

Examples of rice.p2p.commonapi.DeliveryNotification


  public void send(String key, Message message) {
    Id id = idFactory.buildId(key);
    log.debug("Sending message with id: " + id.toStringFull());
    final Counter counter = new Counter(1);
    this.endpoint.route(id, message, null, new DeliveryNotification() {

      public void sendFailed(MessageReceipt arg0, Exception arg1) {
        log.warn("Failed to send the message");
        counter.decrement();
      }
View Full Code Here


        log
            .debug("Found a node in leaf set to which the message can be "
                + "sent directly: " + nodeId);
        found = true;
        final Counter counter = new Counter(1);
        endpoint.route(null, message, nh, new DeliveryNotification() {

          public void sendFailed(MessageReceipt arg0, Exception arg1) {
            log.warn("Failed to directly send a message", arg1);
            counter.decrement();
          }
View Full Code Here

TOP

Related Classes of rice.p2p.commonapi.DeliveryNotification

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.