app.myoss.wechat.mp.api

Interface WeChatMpDynamicConfigStorage

  • All Known Implementing Classes:
    WeChatMpDynamicConfigInRedisStorage


    public interface WeChatMpDynamicConfigStorage
    ????? "????"???access_token?????
    Since:
    2018?8?28? ??4:04:57
    Author:
    Jerry.Chen
    • Method Detail

      • getAccessToken

        String getAccessToken()
        ?? access_token ?
        Returns:
        access_token ?
      • isAccessTokenExpired

        boolean isAccessTokenExpired()
        ?? access_token ????
        Returns:
        true: ??; false: ???
      • getExpiresTime

        long getExpiresTime()
        ?? access_token ????
        Returns:
        ?????????
      • updateAccessToken

        void updateAccessToken(String accessToken,                       int expiresInSeconds)
        ?? access_token ?
        Parameters:
        accessToken - ?? access_token ?
        expiresInSeconds - ?????????
      • expireAccessToken

        void expireAccessToken()
        ??? access_token ???
      • getLock

        Lock getLock(String key)
        ?? redis lock ?
        Parameters:
        key - ????
        Returns:
        redis lock ???
      • getJsapiTicket

        String getJsapiTicket()
        ?? jsapi_ticket ?
        Returns:
        jsapi_ticket ?
      • isJsapiTicketExpired

        boolean isJsapiTicketExpired()
        ?? jsapi_ticket ????
        Returns:
        true: ??; false: ???
      • getJsapiTicketExpiresTime

        long getJsapiTicketExpiresTime()
        ?? jsapi_ticket ????
        Returns:
        ?????????
      • expireJsapiTicket

        void expireJsapiTicket()
        ??? jsapi_ticket ???
      • updateJsapiTicket

        void updateJsapiTicket(String jsapiTicket,                       int expiresInSeconds)
        ?? jsapi_ticket ?
        Parameters:
        jsapiTicket - ?? jsapi_ticket ?
        expiresInSeconds - ?????????
      • getCardApiTicket

        String getCardApiTicket()
        ?? ??api_ticket ?
        Returns:
        ??api_ticket ?
      • isCardApiTicketExpired

        boolean isCardApiTicketExpired()
        ?? ??api_ticket ????
        Returns:
        true: ??; false: ???
      • getCardApiTicketExpiresTime

        long getCardApiTicketExpiresTime()
        ?? ??api_ticket ????
        Returns:
        ?????????
      • expireCardApiTicket

        void expireCardApiTicket()
        ??? ??api_ticket ???
      • updateCardApiTicket

        void updateCardApiTicket(String cardApiTicket,                         int expiresInSeconds)
        ?? ??api_ticket ?
        Parameters:
        cardApiTicket - ?? ??api_ticket ?
        expiresInSeconds - ?????????

Copyright © 2018–2019. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14