@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(key, value); return this; }
@Override public JMSProducer setProperty(String name, int value) { checkName(name); properties.putIntProperty(new SimpleString(name), value); return this; }
@Override public void setInt(final String name, final int value) throws JMSException { checkName(name); map.putIntProperty(new SimpleString(name), value); invalid = true; }
@Override public CoreMessage putIntProperty(final String key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }
properties.putShortProperty(key, (Short) value); } else if (value instanceof Integer) { properties.putIntProperty(key, (Integer) value); } else if (value instanceof Long) { properties.putLongProperty(key, (Long) value);
@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); getProperties().putIntProperty(key, value); return this; }
@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); getProperties().putIntProperty(key, value); return this; }
@Override public JMSProducer setProperty(String name, int value) { checkName(name); properties.putIntProperty(new SimpleString(name), value); return this; }
@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); getProperties().putIntProperty(key, value); return this; }
@Override public void setInt(final String name, final int value) throws JMSException { checkName(name); map.putIntProperty(new SimpleString(name), value); invalid = true; }
@Override public void setInt(final String name, final int value) throws JMSException { checkName(name); map.putIntProperty(new SimpleString(name), value); invalid = true; }
@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(key, value); return this; }
@Override public JMSProducer setProperty(String name, int value) { checkName(name); properties.putIntProperty(new SimpleString(name), value); return this; }
@Override public JMSProducer setProperty(String name, int value) { checkName(name); properties.putIntProperty(new SimpleString(name), value); return this; }
@Override public CoreMessage putIntProperty(final SimpleString key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(key, value); return this; }
@Override public void setInt(final String name, final int value) throws JMSException { checkName(name); map.putIntProperty(new SimpleString(name), value); invalid = true; }
@Override public JMSProducer setProperty(String name, int value) { checkName(name); properties.putIntProperty(new SimpleString(name), value); return this; }
private Notification createProposalNotification(SimpleString groupId, SimpleString clusterName) { TypedProperties props = new TypedProperties(); props.putSimpleStringProperty(ManagementHelper.HDR_PROPOSAL_GROUP_ID, groupId); props.putSimpleStringProperty(ManagementHelper.HDR_PROPOSAL_VALUE, clusterName); props.putIntProperty(ManagementHelper.HDR_BINDING_TYPE, BindingType.LOCAL_QUEUE_INDEX); props.putSimpleStringProperty(ManagementHelper.HDR_ADDRESS, address); props.putIntProperty(ManagementHelper.HDR_DISTANCE, 0); return new Notification(null, CoreNotificationType.PROPOSAL, props); }
@Override public Response receive(final Proposal proposal, final int distance) throws Exception { TypedProperties props = new TypedProperties(); props.putSimpleStringProperty(ManagementHelper.HDR_PROPOSAL_GROUP_ID, proposal.getGroupId()); props.putSimpleStringProperty(ManagementHelper.HDR_PROPOSAL_VALUE, proposal.getClusterName()); props.putIntProperty(ManagementHelper.HDR_BINDING_TYPE, BindingType.LOCAL_QUEUE_INDEX); props.putSimpleStringProperty(ManagementHelper.HDR_ADDRESS, address); props.putIntProperty(ManagementHelper.HDR_DISTANCE, distance); Notification notification = new Notification(null, CoreNotificationType.PROPOSAL, props); managementService.sendNotification(notification); return null; }
@Override public CoreMessage putIntProperty(final String key, final int value) { messageChanged(); checkProperties(); properties.putIntProperty(SimpleString.toSimpleString(key, getPropertyKeysPool()), value); return this; }