Package org.jcsp.net

Class ChannelIndexMap

java.lang.Object
org.jcsp.net.ChannelIndexMap

class ChannelIndexMap extends Object
  • Field Details

    • threshold

      private int threshold
    • count

      private int count
    • loadFactor

      private float loadFactor
    • size

      private int size
    • data

      private ChannelIndexMap.Entry[] data
    • entryPool

      private ChannelIndexMap.Entry entryPool
  • Constructor Details

    • ChannelIndexMap

      public ChannelIndexMap(int size, float loadFactor)
  • Method Details

    • get

      public ChannelOutput get(long key)
    • put

      public boolean put(long key, SharedChannelOutput value)
      Puts a value into the index if the key does not already exist.
    • remove

      public boolean remove(long key, SharedChannelOutput ch)
    • rehash

      private void rehash()
    • getChannels

      public Enumeration getChannels()
    • emptyPool

      public void emptyPool()