com.ibm.as400.access

Class ConnectionEvent

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


    public class ConnectionEvent
    extends java.util.EventObject
    The ConnectionEvent class represents a Connection event.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConnectionEvent(java.lang.Object source, int service)
      Constructs a ConnectionEvent object.
    • Method Summary

      Methods 
      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(java.lang.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.