mirror of https://github.com/apache/activemq.git
fix formatting
This commit is contained in:
parent
9ad65c62ed
commit
9ae5b4147b
|
@ -425,26 +425,26 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
|
||||||
command.setPrioritySupported(isPrioritizedMessages());
|
command.setPrioritySupported(isPrioritizedMessages());
|
||||||
org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(message);
|
org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(message);
|
||||||
command.setMessage(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
|
command.setMessage(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
|
||||||
store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), new IndexAware() {
|
store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), new IndexAware() {
|
||||||
// sync add? (for async, future present from getFutureOrSequenceLong)
|
// sync add? (for async, future present from getFutureOrSequenceLong)
|
||||||
Object possibleFuture = message.getMessageId().getFutureOrSequenceLong();
|
Object possibleFuture = message.getMessageId().getFutureOrSequenceLong();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sequenceAssignedWithIndexLocked(final long sequence) {
|
public void sequenceAssignedWithIndexLocked(final long sequence) {
|
||||||
message.getMessageId().setFutureOrSequenceLong(sequence);
|
message.getMessageId().setFutureOrSequenceLong(sequence);
|
||||||
if (indexListener != null) {
|
if (indexListener != null) {
|
||||||
if (possibleFuture == null) {
|
if (possibleFuture == null) {
|
||||||
trackPendingAdd(dest, sequence);
|
trackPendingAdd(dest, sequence);
|
||||||
indexListener.onAdd(new IndexListener.MessageContext(context, message, new Runnable() {
|
indexListener.onAdd(new IndexListener.MessageContext(context, message, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
trackPendingAddComplete(dest, sequence);
|
trackPendingAddComplete(dest, sequence);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, null);
|
}
|
||||||
|
}, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue