|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for EventRegistrations. Use the methods in this class to register and unregister interest in an event, and to get the ID of an EventRegistration, after manufacturing it by calling getEventRegistration() in weblogic.event.common.EventServicesDef, which defines an event services factory.
Here's an example of how this interface is used in the process of registering interest in an event:
// Create a T3Client T3Client t3 = new T3Client("t3://host:port"); // Manufacture an EventRegistration object for the client EventRegistrationDef er = t3.services.events() .getEventRegistration( "STOCKS", new Evaluate("tutorial.event.stocks.EvaluateStocks", evRegParams), new Action ("tutorial.event.stocks.MailStockInfo", acRegParams)); // Do the registration with methods from the object's class int regid = er.register();
T3ServicesDef
,
EventServicesDef
Field Summary | |
static int |
ON_DISCONNECT
Constant for use with the "count" flag in an EventRegistration. |
static int |
UNCOUNTED
Constant for use with the "count" flag in an EventRegistration. |
Method Summary | |
int |
getID()
Gets the registration ID associated with an EventRegistration. |
int |
register()
Registers interest in an an event with the event server. |
boolean |
unregister()
Unregisters an EventRegistration. |
Field Detail |
public static final int UNCOUNTED
public static final int ON_DISCONNECT
Method Detail |
public int register() throws EventRegistrationException
public boolean unregister() throws EventRegistrationException
public int getID()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs60 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |