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());
|
||||
org.apache.activemq.util.ByteSequence packet = wireFormat.marshal(message);
|
||||
command.setMessage(new Buffer(packet.getData(), packet.getOffset(), packet.getLength()));
|
||||
store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), new IndexAware() {
|
||||
// sync add? (for async, future present from getFutureOrSequenceLong)
|
||||
Object possibleFuture = message.getMessageId().getFutureOrSequenceLong();
|
||||
store(command, isEnableJournalDiskSyncs() && message.isResponseRequired(), new IndexAware() {
|
||||
// sync add? (for async, future present from getFutureOrSequenceLong)
|
||||
Object possibleFuture = message.getMessageId().getFutureOrSequenceLong();
|
||||
|
||||
@Override
|
||||
public void sequenceAssignedWithIndexLocked(final long sequence) {
|
||||
message.getMessageId().setFutureOrSequenceLong(sequence);
|
||||
if (indexListener != null) {
|
||||
if (possibleFuture == null) {
|
||||
trackPendingAdd(dest, sequence);
|
||||
indexListener.onAdd(new IndexListener.MessageContext(context, message, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
trackPendingAddComplete(dest, sequence);
|
||||
}
|
||||
}));
|
||||
}
|
||||
@Override
|
||||
public void sequenceAssignedWithIndexLocked(final long sequence) {
|
||||
message.getMessageId().setFutureOrSequenceLong(sequence);
|
||||
if (indexListener != null) {
|
||||
if (possibleFuture == null) {
|
||||
trackPendingAdd(dest, sequence);
|
||||
indexListener.onAdd(new IndexListener.MessageContext(context, message, new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
trackPendingAddComplete(dest, sequence);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
}, null);
|
||||
}
|
||||
}, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue