Class RSSConnector.ThrottleSpec

  • All Implemented Interfaces:
    org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
    Enclosing class:
    RSSConnector

    protected static class RSSConnector.ThrottleSpec
    extends java.lang.Object
    implements org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
    The throttle specification class. Each server name is a different bin in this model.
    • Field Detail

      • maxOpenConnectionsPerServer

        protected final int maxOpenConnectionsPerServer
      • minimumMillisecondsPerFetchPerServer

        protected final long minimumMillisecondsPerFetchPerServer
      • minimumMillisecondsPerBytePerServer

        protected final double minimumMillisecondsPerBytePerServer
    • Constructor Detail

      • ThrottleSpec

        public ThrottleSpec​(int maxOpenConnectionsPerServer,
                            long minimumMillisecondsPerFetchPerServer,
                            double minimumMillisecondsPerBytePerServer)
    • Method Detail

      • getMaxOpenConnections

        public int getMaxOpenConnections​(java.lang.String binName)
        Given a bin name, find the max open connections to use for that bin.
        Specified by:
        getMaxOpenConnections in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
        Returns:
        Integer.MAX_VALUE if no limit found.
      • getMinimumMillisecondsPerByte

        public double getMinimumMillisecondsPerByte​(java.lang.String binName)
        Look up minimum milliseconds per byte for a bin.
        Specified by:
        getMinimumMillisecondsPerByte in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
        Returns:
        0.0 if no limit found.
      • getMinimumMillisecondsPerFetch

        public long getMinimumMillisecondsPerFetch​(java.lang.String binName)
        Look up minimum milliseconds for a fetch for a bin.
        Specified by:
        getMinimumMillisecondsPerFetch in interface org.apache.manifoldcf.connectorcommon.interfaces.IThrottleSpec
        Returns:
        0 if no limit found.