|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.MessageSoftRef
public final class MessageSoftRef
Nested Class Summary | |
---|---|
(package private) static class |
MessageSoftRef.TransactionError
|
Field Summary | |
---|---|
private static org.objectweb.util.monolog.api.Logger |
logmon
|
private java.lang.String |
messageId
If the notification is stored independently of its containing message, messageId contains the persistent name of this notification. |
private java.lang.String |
name
Name for persistent message, used to retrieve garbaged message from persistent storage. |
private Message |
ref
Reference for transient message, used to pin non persistent in memory. |
private java.lang.ref.SoftReference |
softRef
The SoftReference to the message, which permits to the message to be garbaged in response to memory demand. |
private int |
stamp
The stamp of the referenced message. |
Constructor Summary | |
---|---|
MessageSoftRef(Message msg)
|
Method Summary | |
---|---|
void |
delete()
Deletes the message in persistent storage. |
Message |
getMessage()
Returns this reference message's referent. |
int |
getStamp()
Returns the stamp of the message backed by this MessageSoftRef, without reloading it if it has been swapped. |
Message |
loadMessage()
Loads from disk this reference message's referent if the message has been swapped out. |
java.lang.String |
toString()
Returns a string representation of this MessageSoftRef object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final org.objectweb.util.monolog.api.Logger logmon
private java.lang.String name
private Message ref
private java.lang.ref.SoftReference softRef
private int stamp
private java.lang.String messageId
Constructor Detail |
---|
MessageSoftRef(Message msg)
Method Detail |
---|
public Message getMessage()
public int getStamp()
public Message loadMessage() throws MessageSoftRef.TransactionError
MessageSoftRef.TransactionError
public void delete()
Transaction
.
public java.lang.String toString()
MessageSoftRef
object.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |