|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Representation of topics in the WebLogic Server Event Topic tree. Provides operations for creating subtopics, submitting event messages, and submitting registrations of interest in events.
EventServicesDef
Field Summary | |
static java.lang.String |
DELIM
Sets the delimiter for representation of a topic's place in the hierarchy of the topic tree. |
static int |
DURABLE
Represents the lifetime of a topic to end when all of the pending events have been evaluated and there are no more registrations of interest for the topic. |
static int |
EPHEMERAL
Represents the lifetime of a topic to end when there are no more registrations of interest for the topic, even if there are pending events that have not yet been evaluated. |
static int |
PERSISTENT
Represents the lifetime of a topic to persistent even though there are no registrations of interest for the topic and there are no pending events to be evaluated. |
Method Summary | |
EventTopicDef |
getEventTopic(java.lang.String subTopic)
Creates a subtopic in the topic tree. |
EventTopicDef |
getEventTopic(java.lang.String subTopic,
int lifetime)
Creates a subtopic with the specified lifetime. |
java.lang.String |
getName()
Returns the string representation of a topic. |
int |
getRegistrationCount()
Returns the number of registrations that are associated with this EventTopic. |
EventRegistrationDef |
register(Evaluate evaluate,
Action action)
Registers interest in an events corresponding to a topic. |
EventRegistrationDef |
register(Evaluate evaluate,
Action action,
boolean sink,
boolean phase,
int count)
Registers interest in an events corresponding to a topic. |
java.lang.String |
submit(java.lang.Object body)
Submits an EventMessage to the WebLogic Server for a topic. |
Field Detail |
public static final int EPHEMERAL
public static final int DURABLE
public static final int PERSISTENT
public static final java.lang.String DELIM
Method Detail |
public java.lang.String getName()
public java.lang.String submit(java.lang.Object body) throws EventGenerationException
body
- Object to submitted as an EventMessagepublic EventTopicDef getEventTopic(java.lang.String subTopic) throws T3Exception
subTopic
- String representing a subtopicpublic EventTopicDef getEventTopic(java.lang.String subTopic, int lifetime) throws T3Exception
subTopic
- String representing a subTopiclifetime
- How long a topic will remain in the topic treepublic EventRegistrationDef register(Evaluate evaluate, Action action) throws EventRegistrationException
evaluate
- Evaluate object for the registrationaction
- Action object for the registrationpublic EventRegistrationDef register(Evaluate evaluate, Action action, boolean sink, boolean phase, int count) throws EventRegistrationException
evaluate
- An Evaluate object that implements
weblogic.event.evaluators.EvaluateDef interfaceaction
- An Action object that implements
weblogic.event.actions.ActionDef interfacesink
- true if the registration should receive
notification of every event in which it has
registered interest, as well as notification
of events in any more specific topicsphase
- true if this registration is interested in
the "true" state of the evaluationcount
- Specifies the number of events that this
registration should receive before
automatically unregistering itself; specify
weblogic.event.common.EventRegistrationDef.UNCOUNTED
for an unlimited registrationpublic int getRegistrationCount() throws EventRegistrationException
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |