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