Package org.apache.qpid.framing.abstraction

Examples of org.apache.qpid.framing.abstraction.MessagePublishInfoImpl


        assertEvent(2, Event.PERSISTENT_MESSAGE_SIZE_UNDERFULL);
    }

    protected EnqueableMessage addMessage(long id)
    {
        MessagePublishInfo pubInfoBody = new MessagePublishInfoImpl(new AMQShortString(getName()), false, false,
                new AMQShortString(getName()));
        BasicContentHeaderProperties props = new BasicContentHeaderProperties();
        props.setDeliveryMode(Integer.valueOf(BasicContentHeaderProperties.PERSISTENT).byteValue());
        props.setContentType(getTestName());
View Full Code Here


        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange,
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey);

    }
View Full Code Here

        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange == null ? null : exchange.intern(),
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey == null ? null : routingKey.intern(false));

    }
View Full Code Here

        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange,
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey);

    }
View Full Code Here

        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange,
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey);

    }
View Full Code Here

        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange,
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey);

    }
View Full Code Here

        final BasicPublishBody publishBody = ((BasicPublishBody) methodBody);

        final AMQShortString exchange = publishBody.getExchange();
        final AMQShortString routingKey = publishBody.getRoutingKey();

        return new MessagePublishInfoImpl(exchange == null ? null : exchange.intern(),
                                          publishBody.getImmediate(),
                                          publishBody.getMandatory(),
                                          routingKey == null ? null : routingKey.intern());

    }
View Full Code Here

    final AMQShortString _exchange = new AMQShortString("exchange");
    final AMQShortString _routingKey = new AMQShortString("routingKey");

    public void setUp()
    {
        _mpi = new MessagePublishInfoImpl(_exchange, true, true, _routingKey);
    }
View Full Code Here

    public void testIsImmediate()
    {
        //Check that the set value is correct
        assertTrue("Set value for immediate not as expected", _mpi.isImmediate());

        MessagePublishInfoImpl mpi = new MessagePublishInfoImpl();

        assertFalse("Default value for immediate should be false", mpi.isImmediate());

        mpi.setImmediate(true);
       
        assertTrue("Updated value for immediate not as expected", mpi.isImmediate());

    }
View Full Code Here

     */
    public void testIsMandatory()
    {
        assertTrue("Set value for mandatory not as expected", _mpi.isMandatory());

        MessagePublishInfoImpl mpi = new MessagePublishInfoImpl();

        assertFalse("Default value for mandatory should be false", mpi.isMandatory());

        mpi.setMandatory(true);

        assertTrue("Updated value for mandatory not as expected", mpi.isMandatory());
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.framing.abstraction.MessagePublishInfoImpl

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.