public final class EventFieldFilter extends java.lang.Object implements EventFilter
EventFilterwhich allows all the events but trims some of their message fields.
By default, the input event is returned unchanged. Specify a
FieldMask for an event
type in order to trim certain fields off the event messages (the fields in the mask are
the retained, all the others are cleared).
Note that the mask should contain all the
(required) = true fields. Otherwise,
the event will not be acknowledged by the bus.
|Modifier and Type||Class and Description|
A builder for the
|Modifier and Type||Method and Description|
Applies this filter to the given
Applies this filter to the given event.
Creates a new instance of
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.util.Optional<? extends io.spine.base.EventMessage> filter(io.spine.base.EventMessage event)
public com.google.common.collect.ImmutableCollection<io.spine.core.Event> filter(java.util.Collection<io.spine.core.Event> events)
Events in bulk.
public static EventFieldFilter.Builder newBuilder()