Uses of Interface
io.atomix.primitive.event.EventType
| Package | Description |
|---|---|
| io.atomix.primitive.event |
Provides interfaces for defining distributed primitive events.
|
| io.atomix.primitive.session |
Provides classes and interfaces for managing primitive sessions.
|
-
Uses of EventType in io.atomix.primitive.event
Methods in io.atomix.primitive.event that return EventType Modifier and Type Method Description static EventTypeEventType. canonical(EventType eventType)Simplifies the given event type.default EventTypeEventType. canonicalize()Returns an identical event type in canonical form.static EventTypeEventType. from(String name)Creates a new Raft event identifier.EventTypePrimitiveEvent. type()Returns the event type identifier.Methods in io.atomix.primitive.event that return types with arguments of type EventType Modifier and Type Method Description static Map<EventType,Method>Events. getEventMap(Class<?> serviceInterface)Returns the collection of events provided by the given service interface.static Map<Method,EventType>Events. getMethodMap(Class<?> serviceInterface)Returns the collection of events provided by the given service interface.Methods in io.atomix.primitive.event with parameters of type EventType Modifier and Type Method Description static EventTypeEventType. canonical(EventType eventType)Simplifies the given event type.static PrimitiveEventPrimitiveEvent. event(EventType eventType)Creates a new primitive event.static PrimitiveEventPrimitiveEvent. event(EventType eventType, byte[] value)Creates a new primitive event.Constructors in io.atomix.primitive.event with parameters of type EventType Constructor Description PrimitiveEvent(EventType type, byte[] value) -
Uses of EventType in io.atomix.primitive.session
Methods in io.atomix.primitive.session with parameters of type EventType Modifier and Type Method Description voidSessionClient. addEventListener(EventType eventType, java.util.function.Consumer<PrimitiveEvent> listener)Adds an event listener.default voidSession. publish(EventType eventType)Publishes an empty event to the session.<T> voidSession. publish(EventType eventType, T event)Publishes an event to the session.voidSessionClient. removeEventListener(EventType eventType, java.util.function.Consumer<PrimitiveEvent> listener)Removes an event listener.