Examples of ReplyHandler


Examples of com.google.collide.clientlibs.vertx.VertxBus.ReplyHandler

    @Override
    public void send(REQ msg, final ApiCallback<RESP> callback) {
      RoutableDtoClientImpl messageImpl = (RoutableDtoClientImpl) msg;
      addCustomFields(messageImpl);
      pushChannel.send(address, messageImpl.serialize(), new ReplyHandler() {
          @Override
        public void onReply(String message) {
          Jso jso = Jso.deserialize(message);

          Log.info(getClass(), message);
View Full Code Here

Examples of jmockmongo.wire.ReplyHandler

    bootstrap = new ServerBootstrap(factory);

    bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
      public ChannelPipeline getPipeline() {

        final ReplyHandler handler = new ReplyHandler();
        handler.setCommandHandler("isMaster", new IsMaster());
        handler.setCommandHandler("listDatabases", new ListDatabases());
        handler.setCommandHandler("count", new Count(MockMongo.this));
        handler.setCommandHandler("findandmodify", new FindAndModify(
            MockMongo.this));
        handler.setCommandHandler("dbstats", new DbStats(
            MockMongo.this.data));
        handler
            .setQueryHandler(new DefaultQueryHandler(MockMongo.this));

        handler.setInsertHandler(new DefaultInsertHandler(
            MockMongo.this));

        handler.setUpdateHandler(new DefaultUpdateHandler(
            MockMongo.this));

        handler.setDeleteHandler(new DefaultDeleteHandler(
            MockMongo.this));

        return Channels.pipeline(new SimpleChannelHandler() {

          @Override
View Full Code Here

Examples of org.logicblaze.lingo.jms.ReplyHandler

    public void onMessage(Message message) {
        try {
            String correlationID = message.getJMSCorrelationID();

            // lets notify the monitor for this response
            ReplyHandler handler = null;
            synchronized (this) {
                handler = (ReplyHandler) requests.get(correlationID);
            }
            if (handler == null) {
                log.warn("Response received for unknown request: " + message);
            }
            else {
                boolean complete = handler.handle(message);
                if (complete) {
                    synchronized (this) {
                        requests.remove(correlationID);
                    }
                }
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.