Package io.atomix.primitive.event
Class PrimitiveEvent
java.lang.Object
io.atomix.primitive.event.PrimitiveEvent
public class PrimitiveEvent extends Object
Raft event.
-
Constructor Summary
Constructors Constructor Description PrimitiveEvent(EventType type, byte[] value) -
Method Summary
Modifier and Type Method Description booleanequals(Object object)static PrimitiveEventevent(EventType eventType)Creates a new primitive event.static PrimitiveEventevent(EventType eventType, byte[] value)Creates a new primitive event.inthashCode()StringtoString()EventTypetype()Returns the event type identifier.byte[]value()Returns the event value.
-
Constructor Details
-
Method Details
-
event
Creates a new primitive event.- Parameters:
eventType- the event type- Returns:
- the primitive event
-
event
Creates a new primitive event.- Parameters:
eventType- the event typevalue- the event value- Returns:
- the primitive event
-
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() -
equals
-
toString
-