Class AbstractPingerFactory

    • Field Detail

      • m_pingers

        protected static final com.google.common.cache.Cache<java.lang.Integer,​Pinger> m_pingers
    • Constructor Detail

      • AbstractPingerFactory

        public AbstractPingerFactory()
    • Method Detail

      • getPingerClass

        public abstract java.lang.Class<? extends Pinger> getPingerClass()
      • getInstance

        public Pinger getInstance​(int tc,
                                  boolean allowFragmentation)
        Description copied from interface: PingerFactory
        Returns an implementation of the Pinger class associated with the socket configured for the given traffic control and fragmentation bits.
        Specified by:
        getInstance in interface PingerFactory
        Parameters:
        tc - the traffic control value to set, use "0" for none
        allowFragmentation - whether to allow fragmentation
        Returns:
        a Pinger object.
      • setInstance

        public void setInstance​(int tc,
                                boolean allowFragmentation,
                                Pinger pinger)
      • reset

        public void reset()