Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/jcl/src/java.management/share/classes/java/lang/management/BufferPoolMXBean.java
12511 views
1
/*[INCLUDE-IF JAVA_SPEC_VERSION >= 8]*/
2
/*
3
*******************************************************************************
4
* Copyright (c) 2011, 2022 IBM Corp. and others
5
*
6
* This program and the accompanying materials are made available under
7
* the terms of the Eclipse Public License 2.0 which accompanies this
8
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
* or the Apache License, Version 2.0 which accompanies this distribution and
10
* is available at https://www.apache.org/licenses/LICENSE-2.0.
11
*
12
* This Source Code may also be made available under the following
13
* Secondary Licenses when the conditions for such availability set
14
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
* General Public License, version 2 with the GNU Classpath
16
* Exception [1] and GNU General Public License, version 2 with the
17
* OpenJDK Assembly Exception [2].
18
*
19
* [1] https://www.gnu.org/software/classpath/license.html
20
* [2] http://openjdk.java.net/legal/assembly-exception.html
21
*
22
* 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-exception
23
*******************************************************************************/
24
package java.lang.management;
25
26
/**
27
* The interface for the management buffer pool.
28
*/
29
public interface BufferPoolMXBean extends PlatformManagedObject {
30
31
/**
32
* Returns the name of the buffer pool.
33
*
34
* @return the name of the buffer pool.
35
*/
36
String getName();
37
38
/**
39
* Returns the number of buffers of the pool.
40
*
41
* @return the number of buffers of the pool.
42
*/
43
long getCount();
44
45
/**
46
* Returns the total capacity of the buffers in this pool.
47
*
48
* @return the total capacity of the buffers in this pool.
49
*/
50
long getTotalCapacity();
51
52
/**
53
* Returns the count of used memory.
54
*
55
* @return the count of used memory.
56
*/
57
long getMemoryUsed();
58
59
}
60
61