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()
AvalonDestroyablelastAccessTime in interface AvalonDestroyablepublic void destroy()
AvalonDestroyabledestroy in interface AvalonDestroyablepublic void touch()
throws AoException
AvalonDestroyabletouch in interface AvalonDestroyableAoException - if touch fails