Class MessageTrackerHubService.CallMap

  • Enclosing class:
    MessageTrackerHubService

    private static class MessageTrackerHubService.CallMap
    extends java.lang.Object
    Keeps track of transmissions by key. It works somewhat like a Map, but with the difference that multiple values may be stored under a single key.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map map_  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CallMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object key, Transmission trans)
      Adds a new entry.
      Transmission remove​(java.lang.Object key)
      Reads and removes an entry.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map_

        private final java.util.Map map_
    • Constructor Detail

      • CallMap

        private CallMap()
    • Method Detail

      • add

        public void add​(java.lang.Object key,
                        Transmission trans)
        Adds a new entry.
        Parameters:
        key - key
        trans - value
      • remove

        public Transmission remove​(java.lang.Object key)
        Reads and removes an entry. If multiple values are stored under the given key, one of them (the first to have been stored) is returned, and any others are unaffected.
        Parameters:
        key - key