Class ProcessorCache
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.processor.ProcessorCache
Immutable representation of a processor cache (e.g., L1, L2, L3) on a Windows system.
Fields correspond to properties retrieved from the Win32_CacheMemory
WMI class.
Instances are thread-safe and may be safely cached or shared across threads.
Usage examples
// Build a new ProcessorCache instance
ProcessorCache l2Cache = ProcessorCache.builder()
.deviceId("CPU0_L2")
.purpose("Instruction")
.installedSize(512)
.associativity(8)
.build();
// Create a modified copy using the builder
ProcessorCache resized = l2Cache.toBuilder()
.installedSize(1024)
.build();
Processor
for related CPU information.- Since:
- 2.0.0
- Author:
- Egg-03
- See Also:
-
Constructor Summary
Constructors -
Method Summary