158장. 고정 ID 생성기 구성 요소

Camel 버전 2.17로 사용 가능

Ignite ID Generator 끝점은 Ignite Atomic Sequences 및 ID Generator와 상호 작용할 수 있는 camel-ignite 끝점 중 하나입니다.

이 엔드포인트는 생산자만 지원합니다.

158.1. 옵션

Ignite ID Generator 구성 요소는 아래 나열된 4 가지 옵션을 지원합니다.

이름설명기본값유형

맞춤식 (producer)

Ignite 인스턴스를 설정합니다.

 

ignite

configurationResource (producer)

구성을 로드할 위치에서 리소스를 설정합니다. URI, URI(URI) 또는 InputStream일 수 있습니다.

 

개체

igniteConfiguration (producer)

사용자가 프로그래밍 방식의 IgniteConfiguration을 설정할 수 있도록 합니다.

 

IgniteConfiguration

resolveProperty Placeholders (advanced)

구성 요소가 시작 시 자체적으로 속성 자리 표시자를 확인해야 하는지 여부입니다. String 유형의 속성만 속성 자리 표시자를 사용할 수 있습니다.Only properties which are of String type can use property placeholders.

true

boolean

Ignite ID Generator 끝점은 URI 구문을 사용하여 구성됩니다.

ignite-idgen:name

다음 경로 및 쿼리 매개변수를 사용합니다.

158.1.1. 경로 매개 변수 (1 매개변수):

이름설명기본값유형

name

필수 시퀀스 이름입니다.

 

문자열

158.1.2. 쿼리 매개변수(6 매개변수):

이름설명기본값유형

batchSize (producer)

배치 크기입니다.

 

정수

initialValue (producer)

초기 값입니다.

0

long

작업 (producer)

Ignite ID Generator에서 호출할 작업입니다. IN 메시지의 IgniteConstants.IGNITE_IDGEN_OPERATION 헤더로 대체합니다. 가능한 값: ADD_AND_GET, GET, GET_AND_ADD, GET_AND_INCREMENT, INCREMENT_AND_GET.

 

IgniteIdGenOperation

propagateIncomingBodyIfNo ReturnValue (producer)

기본 Ignite 작업의 반환 형식이 void이면 들어오는 본문을 전파할지 여부를 설정합니다.Sets whether to propagate the incoming body if the return type of the underlying Ignite operation is void.

true

boolean

treatCollectionsAsCache Objects (producer)

컬렉션을 캐시 개체 또는 삽입/업데이트/계산할 항목의 컬렉션으로 처리할지 여부를 설정합니다.Sets whether to treat Collections as cache objects or as Collections of items to insert/update/compute, etc.

false

boolean

synchronous (advanced)

동기 처리를 엄격하게 사용해야 하는지 또는 Camel이 비동기 처리를 사용할 수 있는지 여부를 설정합니다(지원되는 경우).

false

boolean