Package org.jppf.client.event
Class ConnectionPoolEvent
java.lang.Object
java.util.EventObject
org.jppf.client.event.ConnectionPoolEvent
- All Implemented Interfaces:
Serializable
Instances of this class represent events in a
JPPFConnectionPool's life cycle.- Since:
- 5.1
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionInitialize this event with the specified source.ConnectionPoolEvent(JPPFConnectionPool pool, JPPFClientConnection connection) Initialize this event with the specified source and client connection. -
Method Summary
Modifier and TypeMethodDescriptionGet the connection that triggered this event.Get the source of this event.toString()Methods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
ConnectionPoolEvent
Initialize this event with the specified source.- Parameters:
pool- the source of this event.
-
ConnectionPoolEvent
Initialize this event with the specified source and client connection.- Parameters:
pool- the source of this event.connection- the connection that triggered this event.
-
-
Method Details
-
getConnectionPool
Get the source of this event.- Returns:
- a
JPPFConnectionPoolinstance.
-
getConnection
Get the connection that triggered this event.- Returns:
- a
JPPFClientConnectioninstance.
-
toString
- Overrides:
toStringin classEventObject
-