Examples of basicPublish()


Examples of com.rabbitmq.client.Channel.basicPublish()

        @Override
        public void run() {
            try {
                while (true) {
                    Channel ch = conn.createChannel();
                    ch.basicPublish(EXCHANGE, ROUTING_KEY, null, new byte[1024 * 1024]);
                    ch.basicGet(QUEUE, true);
                    ch.close();
                }
            } catch (Exception e) {
                synchronized (outputSync) {
View Full Code Here

Examples of eu.mosaic_cloud.drivers.queue.amqp.AmqpDriver.basicPublish()

        }
        final AmqpOutboundMessage mssg = new AmqpOutboundMessage (exchange, routingKey, dataBytes, mandatory, immediate, durable, replyTo, envelope.getContentEncoding (), envelope.getContentType (), correlationId, null);
        AmqpStub.logger.trace ("AmqpStub - Received request for PUBLISH"); // $NON-NLS-1$
        // NOTE: execute operation
        final DriverOperationFinishedHandler pubHandler = new DriverOperationFinishedHandler (token, session);
        resultBool = driver.basicPublish (token.getClientId (), mssg, pubHandler);
        pubHandler.setDetails (AmqpOperations.PUBLISH, resultBool);
        break;
      case CONSUME_REQUEST :
        final AmqpPayloads.ConsumeRequest cop = (ConsumeRequest) message.payload;
        token = cop.getToken ();
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.