ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/util/FastRateLimiter.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/util/FastRateLimiter.java
Status
scanned
Type
file
Name
FastRateLimiter.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
1505 (1.5 KB)
MD5
732c67d70acbf1490b26efd35d80fc00
SHA1
901f4e31a762af33f8d373471d6dd17d77af8463
SHA256
83e11da48c3e10f4a2ee09a8b06c4194a314435ff82f6c65fb3f38bebbfd8510
SHA512

      
    
SHA1_git
87edc3d61608eca1a7c2ad1ba2109090b5cad567
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
FastRateLimiter.java | 1.5 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.util; import java.util.concurrent.ScheduledExecutorService; /** * A RateLimiter that compromises accuracy for speed in order to provide maximum throughput. */ public class FastRateLimiter extends RateLimiterBase { @Override protected String getDefaultPolicyName() { return "fast"; } @Override protected TimeBucketCounterBase newCounterInstance(int duration, ScheduledExecutorService executorService) { return new TimeBucketCounter(duration, executorService); } @Override public TimeBucketCounter getBucketCounter() { return (TimeBucketCounter) bucketCounter; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
69.59
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9