Interface ChannelPoolMap<K,P extends ChannelPool>

Type Parameters:
K - the type of the key
P - the type of the ChannelPool
All Known Implementing Classes:
AbstractChannelPoolMap

public interface ChannelPoolMap<K,P extends ChannelPool>
Allows to map ChannelPool implementations to a specific key.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    contains(K key)
    Returns true if a ChannelPool exists for the given key.
    get(K key)
    Return the ChannelPool for the code.
  • Method Details

    • get

      P get(K key)
      Return the ChannelPool for the code. This will never return null, but create a new ChannelPool if non exists for they requested key. Please note that null keys are not allowed.
    • contains

      boolean contains(K key)
      Returns true if a ChannelPool exists for the given key. Please note that null keys are not allowed.