public class ClearTemporaryDataElement extends RecordingStrategiesElement implements Poolable<ClearTemporaryDataElement>
| Modifier and Type | Field and Description |
|---|---|
static ObjectPool<ClearTemporaryDataElement> |
POOL
Defines an object pool for this class.
|
| Constructor and Description |
|---|
ClearTemporaryDataElement()
Creates a new empty instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
If a pool is used this method is for releasing the element from the pool.
|
ClearTemporaryDataElement |
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.
|
public static final ObjectPool<ClearTemporaryDataElement> POOL
ClearTemporaryDataElement()
public 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<ClearTemporaryDataElement>clear in class RecordingStrategiesElementpublic ClearTemporaryDataElement create()
create in interface Poolable<ClearTemporaryDataElement>public void release()
Poolable.release in class RecordingStrategiesElement