public class NonDestroyable extends java.lang.Object implements AvalonDestroyable
AvalonDestroyable
which provides the
default implementation of a destroyable instance.Modifier | Constructor and Description |
---|---|
protected |
NonDestroyable() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this instance and release all its resources (pointers, files,
etc).
|
long |
lastAccessTime()
Returns the time stamp of the last access in milliseconds.
|
static NonDestroyable |
runtimeNonDestroyable()
Gets the runtime singleton of
NonDestroyable to be used as
Null-Object. |
void |
touch()
Touches this instance and reset the last access time telling to any other
that this instance is still active, although no method was called.
|
public static final NonDestroyable runtimeNonDestroyable()
NonDestroyable
to be used as
Null-Object.NonDestroyable
singleton.public long lastAccessTime()
AvalonDestroyable
lastAccessTime
in interface AvalonDestroyable
public void destroy()
AvalonDestroyable
destroy
in interface AvalonDestroyable
public void touch() throws AoException
AvalonDestroyable
touch
in interface AvalonDestroyable
AoException
- if touch fails