Interface CimEventGenerator

All Known Subinterfaces:
Provider
All Known Implementing Classes:
BasicProvider, CimClass, CimClient, CimEnumeration, CimInstance, CimInterface, CimStructure, NamedElement, QualifierType, StructureValue

public interface CimEventGenerator
Interface implemented by all CimEvent generators
Author:
Sharad Singhal
  • Method Details

    • addListener

      boolean addListener(CimEventType type, CimListener listener)
      Add a listener to this generator
      Parameters:
      type - - type of event the listener wants
      listener - - CimListener interested in events
      Returns:
      - true if listener was successfully added, false otherwise
    • removeListener

      void removeListener(CimEventType type, CimListener listener)
      Remove a listener from this generator
      Parameters:
      type - of event the listener wants
      listener - - CimListener to be removed
    • hasListener

      boolean hasListener(CimEventType type, CimListener listener)
      Check if this event generator has a listener for an event type
      Parameters:
      type - - type of event
      listener - - listener to check. If null, check if any listener is registered
      Returns:
      - true if the generator has at least one registered listener for the event type, false otherwise