Interface ObserverMethodConfigurator.EventConsumer<T>
-
- Type Parameters:
T
- event type
- Enclosing interface:
- ObserverMethodConfigurator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ObserverMethodConfigurator.EventConsumer<T>
Represents an operation that accepts a context of a fired event.- Author:
- Martin Kouba
- See Also:
EventContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(EventContext<T> eventContext)
-
-
-
Method Detail
-
accept
void accept(EventContext<T> eventContext) throws Exception
- Parameters:
eventContext
- theEventContext
used to fire the event- Throws:
Exception
- The thrown checked exception is wrapped and rethrown as an (unchecked)ObserverException
-
-