This object is used heavily throughout HornetQ for performance reasons. @author Tim Fox
949596979899100101102103104
if(this.queueName == null || this.queueName.trim().equals("")) { throw new Exception("invalid queue name: " + queueName); } SimpleString name = new SimpleString(this.queueName); Binding b = this.postOffice.getBinding(name); if(b == null) { throw new Exception(connectorName + ": queue " + queueName + " not found"); }
573574575576577578579580581582
} @Override public Message putCharProperty(String key, char value) { properties.putCharProperty(new SimpleString(key), value); bufferValid = false; return this; }
640641642643644645646647648649650
return this; } public Message putObjectProperty(final String key, final Object value) throws HornetQPropertyConversionException { putObjectProperty(new SimpleString(key), value); bufferValid = false; return this; }
649650651652653654655656657658659
return this; } public Message putBooleanProperty(final String key, final boolean value) { properties.putBooleanProperty(new SimpleString(key), value); bufferValid = false; return this; }
658659660661662663664665666667668
return this; } public Message putByteProperty(final String key, final byte value) { properties.putByteProperty(new SimpleString(key), value); bufferValid = false; return this; }
667668669670671672673674675676677
return this; } public Message putBytesProperty(final String key, final byte[] value) { properties.putBytesProperty(new SimpleString(key), value); bufferValid = false; return this; }
676677678679680681682683684685686
return this; } public Message putShortProperty(final String key, final short value) { properties.putShortProperty(new SimpleString(key), value); bufferValid = false; return this; }
685686687688689690691692693694695
return this; } public Message putIntProperty(final String key, final int value) { properties.putIntProperty(new SimpleString(key), value); bufferValid = false; return this; }
694695696697698699700701702703704
return this; } public Message putLongProperty(final String key, final long value) { properties.putLongProperty(new SimpleString(key), value); bufferValid = false; return this; }
703704705706707708709710711712713
return this; } public Message putFloatProperty(final String key, final float value) { properties.putFloatProperty(new SimpleString(key), value); bufferValid = false; return this; }