Interface CassandraTokenResolver

All Known Implementing Classes:
FixedTokenResolver, HeaderTokenResolver, PrincipalTokenResolver
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 interface CassandraTokenResolver
Resolver of the Cassandra token. This token will be passed to the Bridge.

The implementation can use any information from the RoutingContext or SecurityContext to obtain the token.

  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext)
    Returns a Cassandra token given a RoutingContext and a SecurityContext.
  • Method Details

    • resolve

      Optional<String> resolve(io.vertx.ext.web.RoutingContext context, javax.ws.rs.core.SecurityContext securityContext)
      Returns a Cassandra token given a RoutingContext and a SecurityContext.
      Parameters:
      context - the routing context
      securityContext - the security context
      Returns:
      The Cassandra token to pass to the Bridge. If empty, indicates that no token should be used..