All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.redis.client.RedisClientName Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.redis.client;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.inject.Qualifier;

/**
 * Marker annotation to select the Redis client.
 *
 * For example, if the Redis connection is configured like so in {@code application.properties}:
 *
 * 
 * quarkus.redis.client1.hosts=localhost:6379
 * 
* * Then to inject the proper {@code redisClient}, you would need to use {@code RedisClientName} like indicated below: * *
 *     @Inject
 *     @RedisClientName("client1")
 *     RedisClient client;
 * 
*/ @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER }) @Retention(RUNTIME) @Documented @Qualifier public @interface RedisClientName { /** * The Redis client name. */ String value() default ""; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy