public class ExitElement extends RecordingStrategiesElement implements Poolable<ExitElement>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
exclude
Is this an exclusion from monitoring.
|
private long |
now
Stores the now.
|
static ObjectPool<ExitElement> |
POOL
Defines an object pool for this class.
|
private java.lang.String |
recId
Stores the recId.
|
private ThreadsInfo |
threadsInfo
Stores the
ThreadsInfo. |
| Constructor and Description |
|---|
ExitElement()
Creates a new empty instance.
|
ExitElement(java.lang.String recId,
long now,
ThreadsInfo threadsInfo,
boolean exclude)
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.
|
ExitElement |
create()
Creates a further instance of this instances (intended as factory method
to be executed on a prototypical instance).
|
int |
getIdentification()
Returns the unambiguous identification of the element.
|
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 |
release()
Release this element from the pool if this instance is
Poolable. |
void |
send(java.io.DataOutputStream out)
Writes this instance to the given output stream.
|
void |
setExclude(boolean exclude)
Sets whether this is an exclusion from monitoring.
|
void |
setNow(long now)
Setter for the now.
|
void |
setRecId(java.lang.String recId)
Setter for the recId.
|
void |
setThreadsInfo(ThreadsInfo threadsInfo)
Setter for the threadsInfo.
|
public static final ObjectPool<ExitElement> POOL
private java.lang.String recId
private long now
private ThreadsInfo threadsInfo
ThreadsInfo.private boolean exclude
ExitElement()
public ExitElement(java.lang.String recId,
long now,
ThreadsInfo threadsInfo,
boolean exclude)
recId - the recIdnow - the nowthreadsInfo - the threadsInfoexclude - is this an exclusion from monitoringpublic void setRecId(java.lang.String recId)
recId - the recId to setpublic void setNow(long now)
now - the now to setpublic void setExclude(boolean exclude)
exclude - is this an exclusion from monitoringpublic void setThreadsInfo(ThreadsInfo threadsInfo)
threadsInfo - the threadsInfo 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 interface Poolable<ExitElement>clear in class RecordingStrategiesElementpublic ExitElement create()
create in interface Poolable<ExitElement>public void release()
Poolable.release in class RecordingStrategiesElement