public static IndirectPriorityQueue<K> | synchronize(IndirectPriorityQueue<K> q, Object sync) Returns a synchronized type-specific indirect priority queue backed by the specified type-specific indirect priority queue, using an assigned object to synchronize.
Parameters: q - the indirect priority queue to be wrapped in a synchronized indirect priority queue. Parameters: sync - an object that will be used to synchronize the access to the indirect priority queue. |