Java Doc for MessageReference.java in  » EJB-Server-JBoss-4.2.1 » messaging » org » jboss » mq » server » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server JBoss 4.2.1 » messaging » org.jboss.mq.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jboss.mq.server.MessageReference

MessageReference
public class MessageReference implements Comparable(Code)
This class holds a reference to an actual Message. Where it is actually at may vary. The reference it holds may be a:
  • Hard Reference - The message is consider recently used and should not be paged out
  • Soft Reference - The message is consider old and CAN be removed from memory by the GC
  • No Reference - The message was removed from memory by the GC, but we can load it from a file.

author:
   Hiram Chirino
author:
   Peter Antman
version:
   $Revision: 57198 $


Field Summary
final public static  intNOT_STORED
    
final public static  intREMOVED
     It was a persistent message for a joint cache store/persistent manager.
final public static  intSTORED
    
public  DurableSubscriptionIDdurableSubscriberID
    
public  SpyMessagehardReference
    
public  intjmsDeliveryMode
    
public  bytejmsPriority
    
static  Loggerlog
    
public  MessageCachemessageCache
    
public  longmessageExpiration
    
public  longmessageId
    
public  longmessageScheduledDelivery
    
public transient  ObjectpersistData
    
public  BasicQueuequeue
    
public  booleanredelivered
    
public  intredeliveryCount
    
public  longredeliveryDelay
    
public  longreferenceId
    
public  SoftReferencesoftReference
    
public  intstored
    

Constructor Summary
 MessageReference()
    

Method Summary
 voidclear()
    
public  intcompareTo(Object o)
     This method allows message to be order on the server queues by priority and the order that they came in on.
public  booleanequals(Object o)
    
public  SpyMessage.HeadergetHeaders()
     We could optimize caching by keeping the headers but not the body.
public  SpyMessagegetMessage()
    
public  SpyMessagegetMessageForDelivery()
    
public  StringgetPersistentKey()
    
public  booleaninMemory()
    
 voidinit(MessageCache messageCache, long referenceId, SpyMessage message, BasicQueue queue, DurableSubscriptionID id)
    
public  voidinvalidate()
    
public  booleanisExpired()
     Returns true if this message reference has expired.
public  booleanisLateClone()
    
public  booleanisPersistent()
    
 voidmakeHard()
    
 voidmakeSoft()
    
public  voidredelivered()
    
public  voidremoveDelayed()
    
 voidreset()
    
public  voidsetStored(int stored)
     Called from A PeristenceManager/CacheStore, to let us know that this message is already stored on disk.
public  StringtoString()
    

Field Detail
NOT_STORED
final public static int NOT_STORED(Code)
The message is not persisted



REMOVED
final public static int REMOVED(Code)
It was a persistent message for a joint cache store/persistent manager. This states guards against double removal from the cache while keeping error checking for incorrect double removal No message should be at this state for very long



STORED
final public static int STORED(Code)
The message is persisted



durableSubscriberID
public DurableSubscriptionID durableSubscriberID(Code)



hardReference
public SpyMessage hardReference(Code)



jmsDeliveryMode
public int jmsDeliveryMode(Code)



jmsPriority
public byte jmsPriority(Code)



log
static Logger log(Code)



messageCache
public MessageCache messageCache(Code)



messageExpiration
public long messageExpiration(Code)



messageId
public long messageId(Code)



messageScheduledDelivery
public long messageScheduledDelivery(Code)



persistData
public transient Object persistData(Code)



queue
public BasicQueue queue(Code)



redelivered
public boolean redelivered(Code)



redeliveryCount
public int redeliveryCount(Code)



redeliveryDelay
public long redeliveryDelay(Code)



referenceId
public long referenceId(Code)



softReference
public SoftReference softReference(Code)



stored
public int stored(Code)




Constructor Detail
MessageReference
MessageReference()(Code)




Method Detail
clear
void clear() throws JMSException(Code)



compareTo
public int compareTo(Object o)(Code)
This method allows message to be order on the server queues by priority and the order that they came in on.
See Also:   Comparable.compareTo(Object)



equals
public boolean equals(Object o)(Code)



getHeaders
public SpyMessage.Header getHeaders() throws JMSException(Code)
We could optimize caching by keeping the headers but not the body. The server will uses the headers more often than the body and the headers take up much message memory than the body For now just return the message.



getMessage
public SpyMessage getMessage() throws JMSException(Code)



getMessageForDelivery
public SpyMessage getMessageForDelivery() throws JMSException(Code)



getPersistentKey
public String getPersistentKey()(Code)
Determines the persistent for storing the message



inMemory
public boolean inMemory()(Code)
Are we entirely in memory? true when in memory, false otherwise



init
void init(MessageCache messageCache, long referenceId, SpyMessage message, BasicQueue queue, DurableSubscriptionID id) throws JMSException(Code)



invalidate
public void invalidate() throws JMSException(Code)



isExpired
public boolean isExpired()(Code)
Returns true if this message reference has expired.



isLateClone
public boolean isLateClone()(Code)
Are we late cloning messages?



isPersistent
public boolean isPersistent()(Code)
Determines whether the message is persistent in the sense that it survives a crash



makeHard
void makeHard() throws JMSException(Code)



makeSoft
void makeSoft() throws JMSException(Code)



redelivered
public void redelivered() throws JMSException(Code)
The message is being redelivered



removeDelayed
public void removeDelayed() throws JMSException(Code)



reset
void reset()(Code)



setStored
public void setStored(int stored)(Code)
Called from A PeristenceManager/CacheStore, to let us know that this message is already stored on disk.



toString
public String toString()(Code)
For debugging



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.