|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.util.EventObject
com.tangosol.util.ServiceEvent
public class ServiceEvent
An event which indicates that a Service state has changed:
A ServiceEvent object is sent as an argument to the ServiceListener interface methods.
Service, ServiceListener| Field Summary | |
|---|---|
static int |
SERVICE_STARTEDThis event indicates that a service has started. |
static int |
SERVICE_STARTINGThis event indicates that a service is starting. |
static int |
SERVICE_STOPPEDThis event indicates that a service has stopped. |
static int |
SERVICE_STOPPINGThis event indicates that a service is stopping. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ServiceEvent(Service service, int nId)Constructs a new ServiceEvent. |
|
| Method Summary | |
|---|---|
void |
dispatch(java.util.EventListener[] aListeners)Dispatch this event to the specified array of listeners. |
void |
dispatch(Listeners listeners)Dispatch this event to the specified listeners collection. |
int |
getId()Return this event's ID. |
Service |
getService()Return the Service that fired the event. |
java.lang.String |
toString()Returns a String representation of this ServiceEvent object. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Field Detail |
|---|
public static final int SERVICE_STARTING
public static final int SERVICE_STARTED
public static final int SERVICE_STOPPING
public static final int SERVICE_STOPPED
| Constructor Detail |
|---|
public ServiceEvent(Service service,
int nId)
service - the Service that fired the eventnId - this event's ID, one of the SERVICE_* enum values| Method Detail |
|---|
public int getId()
public Service getService()
public java.lang.String toString()
toString in class java.util.EventObjectpublic void dispatch(Listeners listeners)
listeners - the listeners collectionjava.lang.ClassCastException - if any of the targets is not an instance of the ServiceListener interfacepublic void dispatch(java.util.EventListener[] aListeners)
aListeners - the array of listenersjava.lang.ClassCastException - if any of the targets is not an instance of ServiceListener interface
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||