initialize
initialize(configData)
initialize 메소드는 런타임 서버가 시작되면 한 번 호출됩니다. 런타임 중에 성능을 저해할 수 있는 작업(예: 데이터베이스 로드)이 있으면, 이 메소드를 통해 수행해야 합니다.
initialize 메소드에 필요한 매개변수는 다음과 같습니다.
*
configData - 콜아웃에 필요한 구성 데이터의 키-값 쌍이 있는 맵입니다.
InteractInteract > Flowchart > External Callouts > [External Callout] > Parameter Data 카테고리에 정의된 External Callout 매개변수에서 이 값을 읽습니다.
initialize 메소드가 어떤 이유로 실패하면 CalloutException을 리턴합니다.
리턴 값
없음.
예제
public void initialize(Map<String, String> configurationData) throws CalloutException
{
// configurationData has the key-value pairs specific to the environment
// the server is running in
// initialize scoreQueryUtility here
}