|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmlBlaster.util.qos.TopicProperty
public final class TopicProperty
Data container handling properties of a message topic.
QoS Informations sent from the client to the server via the publish() methodThis data holder is accessible through decorators, each of them allowing a specialized view on the data
MsgQosSaxFactory
,
MsgQosFactoryTest
,
Serialized FormField Summary | |
---|---|
private PropBoolean |
createDomEntry
|
static boolean |
DEFAULT_readonly
Is readonly allows only one initial message |
private PropLong |
destroyDelay
A topic is destroyed 60 sec after state=UNREFERENCED is reached This is the configured destroyDelay in millis |
static long |
destroyDelay_DEFAULT
|
private static long |
destroyDelay_DEFAULT_DEFAULT
A topic is destroyed 60 sec after state=UNREFERENCED is reached This default can be modified in xmlBlaster.properties: |
private Global |
glob
|
private HistoryQueueProperty |
historyQueueProperty
|
private PropString |
msgDistributor
|
private MsgUnitStoreProperty |
msgUnitStoreProperty
|
private PropBoolean |
readonly
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
TopicProperty(Global glob)
Constructs the specialized quality of service object for a publish() or update() call. |
Method Summary | |
---|---|
boolean |
createDomEntry()
Is the topic available in the internal DOM tree? |
long |
getDestroyDelay()
The life time of the message topic in state UNREFERENCED |
HistoryQueueProperty |
getHistoryQueueProperty()
|
java.lang.String |
getMsgDistributor()
|
MsgUnitStoreProperty |
getMsgUnitStoreProperty()
|
boolean |
hasHistoryQueueProperty()
|
boolean |
hasMsgUnitStoreProperty()
|
boolean |
isMsgDistributorModified()
|
boolean |
isReadonly()
|
void |
setCreateDomEntry(boolean createDomEntry)
Set if the topic is available in the internal DOM tree. |
void |
setDestroyDelay(long destroyDelay)
The life time of the message topic in state UNREFERENCED |
void |
setGlobal(Global glob)
Sets the global object (used when deserializing the object) |
void |
setHistoryQueueProperty(HistoryQueueProperty historyQueueProperty)
|
void |
setMsgDistributor(java.lang.String typeVersion)
Tells the server which plugin to use (if any) for the distribution of the message entries for this topic |
void |
setMsgUnitStoreProperty(MsgUnitStoreProperty msgUnitStoreProperty)
|
void |
setReadonly(boolean readonly)
|
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 |
---|
private static final long serialVersionUID
private transient Global glob
private transient MsgUnitStoreProperty msgUnitStoreProperty
private transient HistoryQueueProperty historyQueueProperty
private static final long destroyDelay_DEFAULT_DEFAULT
topic.destroyDelay=3600000 # One hour [millisec]Every message can set the destroyDelay value between 1 and destroyDelay_DEFAULT, -1L sets the life cycle on forever.
public static final long destroyDelay_DEFAULT
public static boolean DEFAULT_readonly
private PropBoolean readonly
private PropLong destroyDelay
private PropBoolean createDomEntry
private PropString msgDistributor
Constructor Detail |
---|
public TopicProperty(Global glob)
Method Detail |
---|
public void setReadonly(boolean readonly)
public boolean isReadonly()
public long getDestroyDelay()
The
- destroy delay in millisecondspublic void setDestroyDelay(long destroyDelay)
destroyDelay:
- > 0 The topic is automatically destroyed after the given millis in state UNREFERENCEDpublic boolean createDomEntry()
public void setCreateDomEntry(boolean createDomEntry)
true
- This is default and the topic is queryable with XPATHpublic boolean hasMsgUnitStoreProperty()
public MsgUnitStoreProperty getMsgUnitStoreProperty()
public void setMsgUnitStoreProperty(MsgUnitStoreProperty msgUnitStoreProperty)
public boolean hasHistoryQueueProperty()
public HistoryQueueProperty getHistoryQueueProperty()
public void setHistoryQueueProperty(HistoryQueueProperty historyQueueProperty)
public void setMsgDistributor(java.lang.String typeVersion)
type
- the type of the plugin to use (default "undef")version
- the version of the plugin to use (default "1.0")I_MsgDistributor
public java.lang.String getMsgDistributor()
public boolean isMsgDistributorModified()
public java.lang.String toXml()
public java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice output
public void setGlobal(Global glob)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |