Skip to content

Commit

Permalink
add code.
Browse files Browse the repository at this point in the history
  • Loading branch information
thetumbled committed Nov 19, 2024
1 parent 932b841 commit e8f6dc0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
public class InMemoryDelayedDeliveryTracker extends AbstractDelayedDeliveryTracker {

// timestamp -> ledgerId -> entryId
// AVL tree -> OpenHashMap -> RoaringBitmap
protected final Long2ObjectSortedMap<Long2ObjectMap<Roaring64Bitmap>> priorityQueue
= new Long2ObjectAVLTreeMap<>();

Expand All @@ -62,8 +63,8 @@ public class InMemoryDelayedDeliveryTracker extends AbstractDelayedDeliveryTrack
// Track whether we have seen all messages with fixed delay so far.
private boolean messagesHaveFixedDelay = true;

//
private int timestampPrecisionBitCnt = 8;
// The bit count to trim to reduce memory occupation.
private int timestampPrecisionBitCnt = 0;

InMemoryDelayedDeliveryTracker(AbstractPersistentDispatcherMultipleConsumers dispatcher, Timer timer,
long tickTimeMillis,
Expand Down

0 comments on commit e8f6dc0

Please sign in to comment.