Class PrimitiveEvent

java.lang.Object
io.atomix.primitive.event.PrimitiveEvent

public class PrimitiveEvent
extends Object
Raft event.
  • Constructor Details

  • Method Details

    • event

      public static PrimitiveEvent event​(EventType eventType)
      Creates a new primitive event.
      Parameters:
      eventType - the event type
      Returns:
      the primitive event
    • event

      public static PrimitiveEvent event​(EventType eventType, byte[] value)
      Creates a new primitive event.
      Parameters:
      eventType - the event type
      value - the event value
      Returns:
      the primitive event
    • type

      public EventType type()
      Returns the event type identifier.
      Returns:
      the event type identifier
    • value

      public byte[] value()
      Returns the event value.
      Returns:
      the event value
    • hashCode

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

      public boolean equals​(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object