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 Superinterfaces:
Function<org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T>,Boolean>
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:
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    canProcess(org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T> event)
    Determines whether the given AsyncEvent can be processed by this Function.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • canProcess

      default boolean canProcess(@Nullable org.apache.geode.cache.asyncqueue.AsyncEvent<ID,T> event)
      Determines whether the given AsyncEvent can be processed by this Function. Implementing classes must override this method to specify which AsyncEvent Operations they are capable of processing.
      Parameters:
      event - AsyncEvent to evaluate.
      Returns:
      a boolean value indicating whether this Function is capable of processing the given AsyncEvent. Default returns false.
      See Also:
      • AsyncEvent