public class StopTimeRecordingElement extends RecordingStrategiesElement
| Modifier and Type | Field and Description |
|---|---|
private long |
now
Stores the now.
|
private ThreadsInfo |
threadsInfo
Stores the
ThreadsInfo. |
| Constructor and Description |
|---|
StopTimeRecordingElement()
Creates a new empty instance.
|
StopTimeRecordingElement(long now,
ThreadsInfo threadInfo)
Creates a new instance with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
If a pool is used this method is for releasing the element from the pool.
|
int |
getIdentification()
Returns the unambiguous identification of the element.
|
long |
getNow()
Getter for the now.
|
ThreadsInfo |
getThreadsInfo()
Getter for the threadsInfo.
|
void |
process(RecorderStrategy strategy)
Hands the information of the element to the
RecorderStrategy. |
void |
read(java.io.DataInputStream in)
Reads this instance from the given input stream.
|
void |
send(java.io.DataOutputStream out)
Writes this instance to the given output stream.
|
void |
setNow(long now)
Setter for the now.
|
void |
setThreadsInfo(ThreadsInfo threadsInfo)
Setter for the treadsInfo.
|
releaseprivate long now
private ThreadsInfo threadsInfo
ThreadsInfo.public StopTimeRecordingElement()
public StopTimeRecordingElement(long now,
ThreadsInfo threadInfo)
now - the nowthreadInfo - the threadsInfopublic long getNow()
public void setNow(long now)
now - the now to setpublic ThreadsInfo getThreadsInfo()
public void setThreadsInfo(ThreadsInfo threadsInfo)
threadsInfo - the threadInfo to setpublic void send(java.io.DataOutputStream out)
throws java.io.IOException
send in class RecordingStrategiesElementout - the output streamjava.io.IOException - in case of any I/O error or problempublic void read(java.io.DataInputStream in)
throws java.io.IOException
read in class RecordingStrategiesElementin - the input streamjava.io.IOException - in case of any I/O error or problempublic int getIdentification()
getIdentification in class RecordingStrategiesElementpublic void process(RecorderStrategy strategy)
RecorderStrategy.process in class RecordingStrategiesElementstrategy - the RecorderStrategypublic void clear()
clear in class RecordingStrategiesElement