public String getAccessToken() { if (this.atExpiration > System.currentTimeMillis()) return (this.accessToken); // else synchronized (this) { if (this.atExpiration > System.currentTimeMillis()) return (this.accessToken); this.retrieveAccessToken(); return (this.accessToken); } }
public String getJSSDKTicket() { if (this.jtExpiration > System.currentTimeMillis()) return (this.jssdkTicket); // else synchronized (this) { if (this.jtExpiration > System.currentTimeMillis()) return (this.jssdkTicket); this.retrieveJSSDKTicket(); return (this.jssdkTicket); } }