|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.qos.HistoryQos
public final class HistoryQos
Helper class holding QoS settings to acces historical message.
<history numEntries='20'/>
or
<history numEntries='20' newestFirst="false"/>
Default is to deliver the most current entry (numEntries='1'), '-1' would deliver all history entries available.
The selected messages can be further filtered by mime plugins, see requirementinterface.get
.
Field Summary | |
---|---|
static boolean |
DEFAULT_newestFirst
|
static int |
DEFAULT_numEntries
|
Constructor Summary | |
---|---|
HistoryQos(Global glob)
|
|
HistoryQos(Global glob,
int numEntries)
|
Method Summary | |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
java.lang.StringBuffer character)
Handle SAX parsed end element |
boolean |
getNewestFirst()
|
int |
getNumEntries()
Returns the number of history entries. |
void |
setNewestFirst(boolean newestFirst)
The sorting order in which the history entries are delivered. |
void |
setNumEntries(int numEntries)
|
boolean |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
java.lang.StringBuffer character,
org.xml.sax.Attributes attrs)
Called for SAX history start tag |
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_numEntries
public static final boolean DEFAULT_newestFirst
Constructor Detail |
---|
public HistoryQos(Global glob)
glob
- The global handle holding environment and logging objectspublic HistoryQos(Global glob, int numEntries)
glob
- The global handle holding environment and logging objectsnumEntries
- The number of history entries you wantMethod Detail |
---|
public void setNumEntries(int numEntries)
numEntries
- The number of history entries,
not more than the current size of the history queue are returned.public int getNumEntries()
public void setNewestFirst(boolean newestFirst)
newestFirst
- defaults to true.public boolean getNewestFirst()
setNewestFirst(boolean)
public boolean startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, java.lang.StringBuffer character, org.xml.sax.Attributes attrs)
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name, java.lang.StringBuffer character)
public java.lang.String toXml()
public java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice output
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |