public abstract class TokenCreator extends Object implements CacheCreator<Token>
Description:
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CACHEKEY_PREFIX
cache key prefix
|
protected WeixinRequestClient |
weixinRequestClient |
| 构造器和说明 |
|---|
TokenCreator() |
| 限定符和类型 | 方法和说明 |
|---|---|
Token |
create()
create cache
|
String |
key()
cache key
|
abstract String |
name()
返回缓存类型命名,如mp_token
|
abstract String |
uniqueid()
返回缓存唯一标识,如appid
|
protected WeixinRequestClient weixinRequestClient
public String key()
CacheCreatorkey 在接口中 CacheCreator<Token>public Token create() throws WeixinException
CacheCreatorcreate 在接口中 CacheCreator<Token>WeixinExceptionpublic abstract String name()
public abstract String uniqueid()
Copyright © 2019. All rights reserved.