public CoreMessage setUserID(UUID userID) { this.userID = userID; messageChanged(); return this; }
@Override public CoreMessage setDurable(boolean durable) { messageChanged(); this.durable = durable; return this; }
@Override public CoreMessage setAddress(SimpleString address) { if (address == null && this.address == null) { // no-op so just return return this; } if (validBuffer && (address == null || !address.equals(this.address))) { messageChanged(); } this.address = address; return this; }
@Override public CoreMessage putBooleanProperty(final SimpleString key, final boolean value) { messageChanged(); checkProperties(); properties.putBooleanProperty(key, value); return this; }
@Override public CoreMessage putShortProperty(final SimpleString key, final short value) { messageChanged(); checkProperties(); properties.putShortProperty(key, value); return this; }
@Override public CoreMessage putFloatProperty(final SimpleString key, final float value) { messageChanged(); checkProperties(); properties.putFloatProperty(key, value); return this; }
@Override public Double getDoubleProperty(final SimpleString key) throws ActiveMQPropertyConversionException { messageChanged(); checkProperties(); return properties.getDoubleProperty(key); }
@Override public CoreMessage putStringProperty(final SimpleString key, final SimpleString value) { messageChanged(); checkProperties(); properties.putSimpleStringProperty(key, value); return this; }
@Override public CoreMessage putLongProperty(final SimpleString key, final long value) { messageChanged(); checkProperties(); properties.putLongProperty(key, value); return this; }
@Override public CoreMessage setAddress(String address) { messageChanged(); this.address = SimpleString.toSimpleString(address, coreMessageObjectPools == null ? null : coreMessageObjectPools.getAddressStringSimpleStringPool()); return this; }
@Override public CoreMessage putBytesProperty(final SimpleString key, final byte[] value) { messageChanged(); checkProperties(); properties.putBytesProperty(key, value); return this; }
@Override public CoreMessage putDoubleProperty(final SimpleString key, final double value) { messageChanged(); checkProperties(); properties.putDoubleProperty(key, value); return this; }
@Override public Object removeProperty(final String key) { messageChanged(); checkProperties(); Object oldValue = properties.removeProperty(SimpleString.toSimpleString(key, getPropertyKeysPool())); if (oldValue != null) { messageChanged(); } return oldValue; }
@Override public CoreMessage putObjectProperty(final String key, final Object value) throws ActiveMQPropertyConversionException { messageChanged(); putObjectProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putDoubleProperty(final String key, final double value) { messageChanged(); checkProperties(); properties.putDoubleProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putByteProperty(final String key, final byte value) { messageChanged(); checkProperties(); properties.putByteProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putIntProperty(final String key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putFloatProperty(final String key, final float value) { messageChanged(); checkProperties(); properties.putFloatProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putBooleanProperty(final String key, final boolean value) { messageChanged(); checkProperties(); properties.putBooleanProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
@Override public CoreMessage putStringProperty(final String key, final String value) { messageChanged(); checkProperties(); properties.putSimpleStringProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), SimpleString.toSimpleString(value, getPropertyValuesPool())); return this; }