Class MastershipEvent

    • Constructor Detail

      • MastershipEvent

        public MastershipEvent​(MastershipEvent.Type type,
                               DeviceId device,
                               MastershipInfo mastershipInfo)
        Creates an event of a given type and for the specified device, role information, and the current time.
        Parameters:
        type - mastership event type
        device - event device subject
        mastershipInfo - mastership info
      • MastershipEvent

        public MastershipEvent​(MastershipEvent.Type type,
                               DeviceId device,
                               MastershipInfo mastershipInfo,
                               long time)
        Creates an event of a given type and for the specified device, master, and time.
        Parameters:
        type - mastership event type
        device - event device subject
        mastershipInfo - mastership information
        time - occurrence time