Interface EventType

All Superinterfaces:
io.atomix.utils.Identifier<String>

public interface EventType
extends io.atomix.utils.Identifier<String>
Raft event identifier.
  • Method Summary

    Modifier and Type Method Description
    static EventType canonical​(EventType eventType)
    Simplifies the given event type.
    default EventType canonicalize()
    Returns an identical event type in canonical form.
    static EventType from​(String name)
    Creates a new Raft event identifier.

    Methods inherited from interface io.atomix.utils.Identifier

    id
  • Method Details

    • from

      static EventType from​(String name)
      Creates a new Raft event identifier.
      Parameters:
      name - the event name
      Returns:
      the event identifier
    • canonical

      static EventType canonical​(EventType eventType)
      Simplifies the given event type.
      Parameters:
      eventType - the event type to simplify
      Returns:
      the simplified event type
    • canonicalize

      default EventType canonicalize()
      Returns an identical event type in canonical form.
      Returns:
      an identical event type in canonical form