T
- type
of the entity tied to the event.ID
- type
of the identifier of the entity.@FunctionalInterface
public static interface RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction<T,ID>
extends java.util.function.Function<org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T>,java.lang.Boolean>
RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction
interface is a Function
and FunctionalInterface
that translates the AsyncEvent
Operation
into a Spring Data CrudRepository
method
invocation.AsyncEvent
,
FunctionalInterface
,
Function
Modifier and Type | Method and Description |
---|---|
default boolean |
canProcess(org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T> event)
Determines whether the given
AsyncEvent can be processed by this Function . |
default boolean canProcess(@Nullable org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T> event)
AsyncEvent
can be processed by this Function
.
Implementing classes must override this method to specify which AsyncEvent
Operations
they are capable of processing.event
- AsyncEvent
to evaluate.Function
is capable of processing
the given AsyncEvent
. Default returns false.AsyncEvent