![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.avalon.excalibur.pool.Poolable Maven / Gradle / Ivy
The newest version!
/*
* 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.avalon.excalibur.pool;
/**
* Poolable
is a marker interface for Components that can
* be pooled. Components that are not pooled are created anew via a
* factory every time a request is made for the component.
*
* Components implementing this interface can add the following
* attributes to its definition:
*
* <component pool-min="1" pool-max="10" pool-grow="1">
* <tag>value</tag>
* </component>
*
* Where:
*
pool-min |
* sets the minimum number of Components maintained by the * pool | *
pool-max |
* sets the maximum number of Components maintained by the * pool | *
pool-grow |
* sets the number of Components to grow or * shrink the pool by whenever it becomes necessary to do so | *
* NB: It was a deliberate choice not to extend Component. This will have to * be reassed once we see it in action. *
* * @author Avalon Development Team * @version CVS $Revision: 1.7 $ $Date: 2004/03/29 16:50:37 $ * @since 4.0 */ public interface Poolable { }© 2015 - 2025 Weber Informatics LLC | Privacy Policy