IOStatisticsContext, IOStatisticsSourcepublic final class IOStatisticsContextImpl extends java.lang.Object implements IOStatisticsContext
| Constructor | Description |
|---|---|
IOStatisticsContextImpl(long threadId,
long id) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
IOStatisticsAggregator |
getAggregator() |
Get the IOStatisticsAggregator of the context.
|
long |
getID() |
ID of this context.
|
IOStatistics |
getIOStatistics() |
Return a statistics instance.
|
long |
getThreadID() |
Get the thread ID.
|
void |
reset() |
Reset the thread +.
|
IOStatisticsSnapshot |
snapshot() |
Returns a snapshot of the current thread's IOStatistics.
|
java.lang.String |
toString() |
public IOStatisticsContextImpl(long threadId,
long id)
threadId - thread IDid - instance ID.public java.lang.String toString()
toString in class java.lang.Objectpublic IOStatisticsAggregator getAggregator()
getAggregator in interface IOStatisticsContextpublic IOStatisticsSnapshot snapshot()
snapshot in interface IOStatisticsContextpublic void reset()
reset in interface IOStatisticsContextpublic IOStatistics getIOStatistics()
IOStatisticsSource
It is not a requirement that the same instance is returned every time.
IOStatisticsSource.
If the object implementing this is Closeable, this method may return null if invoked on a closed object, even if it returns a valid instance when called earlier.
getIOStatistics in interface IOStatisticsSourcepublic long getID()
getID in interface IOStatisticsContextpublic long getThreadID()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.