Class UnsettledMap<Delivery>

java.lang.Object
org.apache.qpid.protonj2.engine.util.UnsettledMap<Delivery>
Type Parameters:
Delivery - The delivery type being tracker (incoming or outgoing)
All Implemented Interfaces:
Map<UnsignedInteger,Delivery>

public class UnsettledMap<Delivery> extends Object implements Map<UnsignedInteger,Delivery>
A specialized collection like entity that is used to keep track of unsettled incoming and outgoing deliveries for AMQP links and the sessions that manage those links.

While this class implements the Map interface it does not fully behave as a standard map as it solves the issue of tracking delivery IDs which always increase until such time as the unsigned integer value used to represents them overflows. It is possible (although unlikely) for the same ID to exist for multiple deliveries if an older delivery exists in the Map and the delivery IDs overflow and the same value is produced once again.