Path: blob/master/jcl/src/java.management/share/classes/java/lang/management/BufferPoolMXBean.java
12511 views
/*[INCLUDE-IF JAVA_SPEC_VERSION >= 8]*/1/*2*******************************************************************************3* Copyright (c) 2011, 2022 IBM Corp. and others4*5* This program and the accompanying materials are made available under6* the terms of the Eclipse Public License 2.0 which accompanies this7* distribution and is available at https://www.eclipse.org/legal/epl-2.0/8* or the Apache License, Version 2.0 which accompanies this distribution and9* is available at https://www.apache.org/licenses/LICENSE-2.0.10*11* This Source Code may also be made available under the following12* Secondary Licenses when the conditions for such availability set13* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14* General Public License, version 2 with the GNU Classpath15* Exception [1] and GNU General Public License, version 2 with the16* OpenJDK Assembly Exception [2].17*18* [1] https://www.gnu.org/software/classpath/license.html19* [2] http://openjdk.java.net/legal/assembly-exception.html20*21* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception22*******************************************************************************/23package java.lang.management;2425/**26* The interface for the management buffer pool.27*/28public interface BufferPoolMXBean extends PlatformManagedObject {2930/**31* Returns the name of the buffer pool.32*33* @return the name of the buffer pool.34*/35String getName();3637/**38* Returns the number of buffers of the pool.39*40* @return the number of buffers of the pool.41*/42long getCount();4344/**45* Returns the total capacity of the buffers in this pool.46*47* @return the total capacity of the buffers in this pool.48*/49long getTotalCapacity();5051/**52* Returns the count of used memory.53*54* @return the count of used memory.55*/56long getMemoryUsed();5758}596061