Spring Boot for VMware GemFire
Package org.springframework.geode.cache
Interface RepositoryAsyncEventListener.AsyncEventOperationRepositoryFunction<T,ID>
- Type Parameters:
T-typeof the entity tied to the event.ID-typeof 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:
-
AsyncEventFunctionalInterfaceFunction
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanProcess(org.apache.geode.cache.asyncqueue.AsyncEvent<ID, T> event) Determines whether the givenAsyncEventcan be processed by thisFunction.
-
Method Details
-
canProcess
Determines whether the givenAsyncEventcan be processed by thisFunction. Implementing classes must override this method to specify whichAsyncEventOperationsthey are capable of processing.- Parameters:
event-AsyncEventto evaluate.- Returns:
- a boolean value indicating whether this
Functionis capable of processing the givenAsyncEvent. Default returns false. - See Also:
-
AsyncEvent
-