Class WatchEvent

  • All Implemented Interfaces:
    Serializable

    public final class WatchEvent
    extends EventObject
    This class is used by the SmartInspectListener.onWatch event of the SmartInspect class. It has only one public class member named getWatch. This member is a method, which just returns the sent packet.

    This class is fully threadsafe.

    See Also:
    Serialized Form
    • Constructor Detail

      • WatchEvent

        public WatchEvent​(Object source,
                          Watch watch)
        Creates and initializes a WatchEvent instance.
        Parameters:
        source - The object which fired the event
        watch - The Watch which has just been sent
    • Method Detail

      • getWatch

        public Watch getWatch()
        Returns the Watch packet, which has just been sent.
        Returns:
        The Watch packet which has just been sent