관심분야/업무개발
Server 개발시 응답속도 개선 고찰
을량
2019. 9. 27. 17:54
private Executor executor = Executors.newFixedThreadPool(1);
private static final String XWIKI_GROUP_MEMBERFIELD = "member";
private static final String XWIKI_GROUP_PREFIX = "XWiki.";
public void updateUserInfoAsync() throws MalformedURLException, URISyntaxException
{
final URI userInfoEndpoint = this.configuration.getUserInfoOIDCEndpoint();
final IDTokenClaimsSet idToken = this.configuration.getIdToken();
final BearerAccessToken accessToken = this.configuration.getAccessToken();
this.executor.execute(new ExecutionContextRunnable(new Runnable()
{
@Override
public void run()
{
try {
updateUserInfo(userInfoEndpoint, idToken, accessToken);
} catch (Exception e) {
LOGGER.error("Failed to update user informations", e);
}
}
}, this.componentManager));
}