public class RedissonCacheableAppTokenRepository<T extends AppToken<A,V>,A,V> extends Object implements CacheableTokenRepository<T,A,V>
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.redisson.api.RedissonClient |
client |
protected org.redisson.client.codec.Codec |
codec |
protected org.redisson.api.RMap<A,T> |
mapCache |
protected String |
namespace |
protected TokenFactory<T,A,V> |
tokenFactory |
| 构造器和说明 |
|---|
RedissonCacheableAppTokenRepository(org.redisson.api.RedissonClient client,
String namespace,
TokenFactory<T,A,V> tokenFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletionStage<Void> |
clearAsync() |
protected CompletionStage<? extends T> |
createToken(A appId) |
CompletionStage<T> |
getTokenAsync(A appId) |
CompletionStage<List<T>> |
getTokensAsync() |
protected CompletionStage<? extends T> |
putTokenAsync(T token) |
CompletionStage<Void> |
removeAsync(A appId) |
CompletionStage<Void> |
removeAsync(T token) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, getTokens, remove, removegetTokenprotected final org.redisson.api.RedissonClient client
protected final String namespace
protected final org.redisson.client.codec.Codec codec
public RedissonCacheableAppTokenRepository(@Nonnull
org.redisson.api.RedissonClient client,
@Nonnull
String namespace,
@Nonnull
TokenFactory<T,A,V> tokenFactory)
@Nonnull public CompletionStage<List<T>> getTokensAsync()
getTokensAsync 在接口中 CacheableTokenRepository<T extends AppToken<A,V>,A,V>@Nonnull public CompletionStage<Void> clearAsync()
clearAsync 在接口中 CacheableTokenRepository<T extends AppToken<A,V>,A,V>@Nonnull public CompletionStage<Void> removeAsync(@Nonnull A appId)
removeAsync 在接口中 CacheableTokenRepository<T extends AppToken<A,V>,A,V>@Nonnull public CompletionStage<Void> removeAsync(@Nonnull T token)
removeAsync 在接口中 CacheableTokenRepository<T extends AppToken<A,V>,A,V>@Nonnull public CompletionStage<T> getTokenAsync(@Nonnull A appId)
getTokenAsync 在接口中 TokenRepository<T extends AppToken<A,V>,A,V>protected CompletionStage<? extends T> createToken(@Nonnull A appId)
protected CompletionStage<? extends T> putTokenAsync(@Nonnull T token)
Copyright © 2024. All rights reserved.