在决策平台中提供登录后事件的接口,可以在登录成功之后做一些自定义操作。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
576 B

package com.fr.plugin.decision.login.event;
import com.fr.decision.fun.impl.AbstractLoginEventProvider;
import com.fr.plugin.transform.FunctionRecorder;
/**
* Created by zhouping on 2018/12/14.
*/
@FunctionRecorder
public class CustomLoginActionEvent extends AbstractLoginEventProvider {
@Override
public void after(String userId) {
try {
Thread.sleep(10*1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println(userId + " login success, this is CustomLoginActionEvent.");
}
}