|
Oracle® Coherence Java API Reference v3.5.3 E15583-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.util.EventObject
com.tangosol.util.ServiceEvent
public class ServiceEvent
An event which indicates that a Service state has changed:
Service,
ServiceListener| Field Summary | |
|---|---|
static int |
SERVICE_STARTED
This event indicates that a service has started. |
static int |
SERVICE_STARTING
This event indicates that a service is starting. |
static int |
SERVICE_STOPPED
This event indicates that a service has stopped. |
static int |
SERVICE_STOPPING
This 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(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 collection
java.lang.ClassCastException - if any of the targets is not
an instance of the ServiceListener interface
|
Oracle® Coherence Java API Reference v3.5.3 E15583-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||