public static final class MethodLogger.Entry
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Entry(java.lang.String method,
java.lang.String accessMessage)
Instantiates a new Entry, using the current time
|
Entry(java.lang.String method,
java.lang.String accessMessage,
long accessTime,
long accessTimeNano)
Instantiates a new Entry
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsSubLog() |
java.lang.String |
getAccessMessage() |
long |
getAccessTime() |
long |
getDuration()
Returns the duration of the method call this entry represents in nanoseconds,
this value is 0 or undefined until
setExitTime()
has been called, this can be checked via isComplete() . |
long |
getExitTime() |
java.lang.String |
getMethod() |
java.util.List<MethodLogger.Entry> |
getSubLog() |
boolean |
isComplete() |
java.lang.String |
toString() |
java.lang.String |
toString(int indentation)
Returns a string representation of this log entry.
|
public Entry(java.lang.String method, java.lang.String accessMessage)
method
- the method being loggedaccessMessage
- the message associated with accessing the methodpublic Entry(java.lang.String method, java.lang.String accessMessage, long accessTime, long accessTimeNano)
method
- the method being loggedaccessMessage
- the message associated with accessing the methodaccessTime
- the time to associate with accessing the methodaccessTimeNano
- the nano time to associate with accessing the methodpublic boolean containsSubLog()
public java.util.List<MethodLogger.Entry> getSubLog()
public java.lang.String getMethod()
public boolean isComplete()
public long getAccessTime()
public long getExitTime()
public java.lang.String getAccessMessage()
public long getDuration()
setExitTime()
has been called, this can be checked via isComplete()
.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(int indentation)
indentation
- the number of tab indents to prefix the string with