Package org.springframework.geode.cache
Interface RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction<T,ID>
- Type Parameters:
T
-type
of the entity tied to the event.ID
-type
of the identifier of the entity.
- All Known Implementing Classes:
RepositoryAsyncEventListener.AbstractAsyncEventOperationRepositoryFunction
,RepositoryAsyncEventListener.CreateUpdateAsyncEventRepositoryFunction
,RepositoryAsyncEventListener.RemoveAsyncEventRepositoryFunction
- Enclosing class:
- RepositoryAsyncEventListener<T,
ID>
- 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 RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction<T,ID>
extends Function<org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T>,Boolean>
The
RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction
interface is a Function
and FunctionalInterface
that translates the AsyncEvent
Operation
into a Spring Data CrudRepository
method
invocation.- See Also:
-
AsyncEvent
FunctionalInterface
Function
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
canProcess
(org.apache.geode.cache.asyncqueue.AsyncEvent<ID, T> event) Determines whether the givenAsyncEvent
can be processed by thisFunction
.
-
Method Details
-
canProcess
Determines whether the givenAsyncEvent
can be processed by thisFunction
. Implementing classes must override this method to specify whichAsyncEvent
Operations
they are capable of processing.- Parameters:
event
-AsyncEvent
to evaluate.- Returns:
- a boolean value indicating whether this
Function
is capable of processing the givenAsyncEvent
. Default returns false. - See Also:
-
AsyncEvent
-