com.ibm.as400.access
Class ConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.ibm.as400.access.ConnectionEvent
All Implemented Interfaces:
Serializable

public class ConnectionEvent
extends EventObject

The ConnectionEvent class represents a Connection event.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Constructor and Description
ConnectionEvent(Object source, int service)
          Constructs a ConnectionEvent object.
 
Method Summary
Modifier and Type Method and Description
 int getService()
          Returns the service ID.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionEvent

public ConnectionEvent(Object source,
                       int service)
Constructs a ConnectionEvent object. It uses the specified source and service.

Parameters:
source - The object where the event originated.
service - The service ID.
Method Detail

getService

public int getService()
Returns the service ID. This identifies the service that was connected or disconnected. The service ID's are defined in the AS400 class.

Returns:
The service ID.