Examples of onMessage()


Examples of com.brewtab.irc.messages.MessageListener.onMessage()

            if (filter.check(message)) {
                executor.execute(new Runnable() {
                    @Override
                    public void run() {
                        try {
                            listener.onMessage(message);
                        } catch (Exception e) {
                            log.error("caught exception from onMessage", e);
                        }
                    }
                });
View Full Code Here

Examples of com.calclab.emite.core.client.xmpp.session.Session.onMessage()

  });

  /*
   * We show every incoming message in the GWT log console
   */
  session.onMessage(new Listener<Message>() {
      public void onEvent(final Message message) {
    GWT.log("Messaged received from " + message.getFrom() + ":" + message.getBody(), null);
      }
  });

View Full Code Here

Examples of com.corundumstudio.socketio.namespace.Namespace.onMessage()

            heartbeatHandler.onHeartbeat(client.getBaseClient());
            break;

        case MESSAGE: {
            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            namespace.onMessage(client, packet.getData().toString(), ackRequest);
            break;
        }

        case JSON: {
            Namespace namespace = namespacesHub.get(packet.getEndpoint());
View Full Code Here

Examples of com.hazelcast.core.MessageListener.onMessage()

        TopicEvent topicEvent = (TopicEvent) event;
        Object msgObject = nodeEngine.toObject(topicEvent.data);
        Message message = new Message(topicEvent.name, msgObject, topicEvent.publishTime, topicEvent.publishingMember);
        incrementReceivedMessages(topicEvent.name);
        MessageListener messageListener = (MessageListener) listener;
        messageListener.onMessage(message);
    }

    public LocalTopicStatsImpl getLocalTopicStats(String name) {
        return getOrPutSynchronized(statsMap, name, statsMap, localTopicStatsConstructorFunction);
    }
View Full Code Here

Examples of com.linkedin.helix.MessageListener.onMessage()

      {
        MessageListener messageListener = (MessageListener) _listener;
        subscribeForChanges(changeContext, true, false);
        String instanceName = _manager.getInstanceName();
        List<Message> messages = _accessor.getChildValues(keyBuilder.messages(instanceName));
        messageListener.onMessage(instanceName, messages, changeContext);
      } else if (_changeType == EXTERNAL_VIEW)
      {
        ExternalViewChangeListener externalViewListener = (ExternalViewChangeListener) _listener;
        subscribeForChanges(changeContext, true, true);
        List<ExternalView> externalViewList = _accessor.getChildValues(keyBuilder.externalViews());
View Full Code Here

Examples of com.netflix.staash.mesh.messages.RequestHandler.onMessage()

    @Override
    public void onMessage(Message message, AsyncResponse response) {
        try {
            RequestHandler handler = verbHandlers.get(message.getVerb());
            if (handler != null) {
                handler.onMessage(message,  response);
            }
        }
        catch (Exception e) {
            // Notify error
        }
View Full Code Here

Examples of com.nokia.dempsy.messagetransport.Listener.onMessage()

         try
         {
            byte[] val = destination.queue.take();
            Listener curListener = listener.get();
           
            boolean messageSuccess = curListener == null ? false : curListener.onMessage(val, failFast);
            if (overflowHandler != null && !messageSuccess)
               overflowHandler.overflow(val);
         }
         catch (InterruptedException ie)
         {
View Full Code Here

Examples of hudson.plugins.im.bot.Bot.onMessage()

          this.desc.getHost(), this.botCommandPrefix, this.authentication);
    this.bots.add(bot);
   
    if (msg != null) {
      // replay original message:
      bot.onMessage(new JabberMessage(msg, isAuthorized(msg.getFrom())));
    }
    chatCache.put(chatPartner, new WeakReference<Chat>(chat));
    return chat;
  }
View Full Code Here

Examples of javax.jms.MessageListener.onMessage()

         {
            if (dlqHandler == null
                  || dlqHandler.handleRedeliveredMessage(message) == false)
            {
               MessageListener listener = (MessageListener) endpoint;
               listener.onMessage(message);
            }
         } finally
         {
            if (!(txnStrategy != null && txnStrategy instanceof TraditionalXATransactionDemarcationStrategy))
               endpoint.afterDelivery();
View Full Code Here

Examples of javax.jms.MessageListener.onMessage()

                            }
                            _currentConsumer = consumer;
                            _currentMessage = msg;
                            try
                            {
                                listener.onMessage(message);
                            }
                            finally
                            {
                                _currentConsumer = null;
                                _currentMessage = null;
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.