This closes #2542
This commit is contained in:
commit
c41edf9bfd
|
@ -326,6 +326,11 @@ public class PersistentQueueBindingEncoding implements EncodingSupport, QueueBin
|
||||||
} else {
|
} else {
|
||||||
lastValue = ActiveMQDefaultConfiguration.getDefaultLastValue();
|
lastValue = ActiveMQDefaultConfiguration.getDefaultLastValue();
|
||||||
}
|
}
|
||||||
|
if (buffer.readableBytes() > 0) {
|
||||||
|
configurationManaged = buffer.readBoolean();
|
||||||
|
} else {
|
||||||
|
configurationManaged = false;
|
||||||
|
}
|
||||||
if (buffer.readableBytes() > 0) {
|
if (buffer.readableBytes() > 0) {
|
||||||
consumersBeforeDispatch = buffer.readInt();
|
consumersBeforeDispatch = buffer.readInt();
|
||||||
} else {
|
} else {
|
||||||
|
@ -336,11 +341,6 @@ public class PersistentQueueBindingEncoding implements EncodingSupport, QueueBin
|
||||||
} else {
|
} else {
|
||||||
delayBeforeDispatch = ActiveMQDefaultConfiguration.getDefaultDelayBeforeDispatch();
|
delayBeforeDispatch = ActiveMQDefaultConfiguration.getDefaultDelayBeforeDispatch();
|
||||||
}
|
}
|
||||||
if (buffer.readableBytes() > 0) {
|
|
||||||
configurationManaged = buffer.readBoolean();
|
|
||||||
} else {
|
|
||||||
configurationManaged = false;
|
|
||||||
}
|
|
||||||
if (buffer.readableBytes() > 0) {
|
if (buffer.readableBytes() > 0) {
|
||||||
lastValueKey = buffer.readNullableSimpleString();
|
lastValueKey = buffer.readNullableSimpleString();
|
||||||
} else {
|
} else {
|
||||||
|
@ -365,9 +365,9 @@ public class PersistentQueueBindingEncoding implements EncodingSupport, QueueBin
|
||||||
buffer.writeByte(routingType);
|
buffer.writeByte(routingType);
|
||||||
buffer.writeBoolean(exclusive);
|
buffer.writeBoolean(exclusive);
|
||||||
buffer.writeBoolean(lastValue);
|
buffer.writeBoolean(lastValue);
|
||||||
|
buffer.writeBoolean(configurationManaged);
|
||||||
buffer.writeInt(consumersBeforeDispatch);
|
buffer.writeInt(consumersBeforeDispatch);
|
||||||
buffer.writeLong(delayBeforeDispatch);
|
buffer.writeLong(delayBeforeDispatch);
|
||||||
buffer.writeBoolean(configurationManaged);
|
|
||||||
buffer.writeNullableSimpleString(lastValueKey);
|
buffer.writeNullableSimpleString(lastValueKey);
|
||||||
buffer.writeBoolean(nonDestructive);
|
buffer.writeBoolean(nonDestructive);
|
||||||
}
|
}
|
||||||
|
@ -382,9 +382,9 @@ public class PersistentQueueBindingEncoding implements EncodingSupport, QueueBin
|
||||||
DataConstants.SIZE_BYTE +
|
DataConstants.SIZE_BYTE +
|
||||||
DataConstants.SIZE_BOOLEAN +
|
DataConstants.SIZE_BOOLEAN +
|
||||||
DataConstants.SIZE_BOOLEAN +
|
DataConstants.SIZE_BOOLEAN +
|
||||||
|
DataConstants.SIZE_BOOLEAN +
|
||||||
DataConstants.SIZE_INT +
|
DataConstants.SIZE_INT +
|
||||||
DataConstants.SIZE_LONG +
|
DataConstants.SIZE_LONG +
|
||||||
DataConstants.SIZE_BOOLEAN +
|
|
||||||
SimpleString.sizeofNullableString(lastValueKey) +
|
SimpleString.sizeofNullableString(lastValueKey) +
|
||||||
DataConstants.SIZE_BOOLEAN;
|
DataConstants.SIZE_BOOLEAN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue