Class SyncSortedMap

    • Constructor Detail

      • SyncSortedMap

        public SyncSortedMap​(SortedMap map,
                             Sync sync)
        Create a new SyncSortedMap protecting the given map, and using the given sync to control both reader and writer methods. Common, reasonable choices for the sync argument include Mutex, ReentrantLock, and Semaphores initialized to 1.
      • SyncSortedMap

        public SyncSortedMap​(SortedMap map,
                             ReadWriteLock rwl)
        Create a new SyncSortedMap protecting the given map, and using the given ReadWriteLock to control reader and writer methods.
      • SyncSortedMap

        public SyncSortedMap​(SortedMap map,
                             Sync readLock,
                             Sync writeLock)
        Create a new SyncSortedMap protecting the given map, and using the given pair of locks to control reader and writer methods.