Class ClusterMetadataEvent

    • Constructor Detail

      • ClusterMetadataEvent

        public ClusterMetadataEvent​(ClusterMetadataEvent.Type type,
                                    ClusterMetadata metadata)
        Creates an event of a given type and for the specified metadata and the current time.
        Parameters:
        type - cluster metadata event type
        metadata - cluster metadata subject
      • ClusterMetadataEvent

        public ClusterMetadataEvent​(ClusterMetadataEvent.Type type,
                                    ClusterMetadata metadata,
                                    long time)
        Creates an event of a given type and for the specified metadata and time.
        Parameters:
        type - cluster metadata event type
        metadata - cluster metadata subject
        time - occurrence time
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object