public abstract class AbstractJmsListenerEndpoint extends ObjectSE implements JmsListenerEndpoint
MethodJmsListenerEndpoint
, SimpleJmsListenerEndpoint
コンストラクターと説明 |
---|
AbstractJmsListenerEndpoint() |
修飾子と型 | メソッドと説明 |
---|---|
protected abstract MessageListenerEE | createMessageListener(MessageListenerContainer container) 指定されたコンテナーに対してこのエンドポイントを提供できる MessageListener EE を作成します。 |
StringSE | getConcurrency() もしあれば、リスナーの並行性を返します。 |
StringSE | getDestination() このエンドポイントの宛先の名前を返します。 |
protected StringBuilderSE | getEndpointDescription() このエンドポイントの説明を返します。 |
StringSE | getId() このエンドポイントの ID を返します(おそらく生成されます)。 |
StringSE | getSelector() JMS メッセージセレクター式がある場合はそれを返します。 |
StringSE | getSubscription() もしあれば、恒久サブスクリプションの名前を返します。 |
void | setConcurrency(StringSE concurrency) もしあれば、リスナーの並行性を設定します。 |
void | setDestination(StringSE destination) このエンドポイントの宛先の名前を設定します。 |
void | setId(StringSE id) このエンドポイントのカスタム ID を設定します。 |
void | setSelector(StringSE selector) JMS メッセージセレクター式を設定します。 |
void | setSubscription(StringSE subscription) 永続サブスクリプションの名前を設定します。 |
void | setupListenerContainer(MessageListenerContainer listenerContainer) このエンドポイントで定義されたモデルを使用して、指定されたメッセージリスナーコンテナーをセットアップします。 |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public void setId(StringSE id)
public StringSE getId()
JmsListenerEndpoint
の getId
public void setSelector(@Nullable StringSE selector)
セレクター式の詳細な定義については、JMS 仕様を参照してください。
public void setConcurrency(@Nullable StringSE concurrency)
同時実行制限は、「下から上」の文字列にすることができます。"5-10"、または単純な上限文字列。"10" (この場合、下限は 1 になります)。
基礎となるコンテナーは、すべての機能をサポートしている場合とサポートしていない場合があります。たとえば、スケーリングできない場合があります。その場合、上限値のみが使用されます。
public void setupListenerContainer(MessageListenerContainer listenerContainer)
JmsListenerEndpoint
このエンドポイントは、それを使用可能にするために、指定されたコンテナーのリクエストされた欠落オプションを提供する必要があります。通常、これは使用する destination
および messageListener
の設定に関するものですが、実装はすでに設定されているデフォルト設定をオーバーライドする場合があります。
JmsListenerEndpoint
の setupListenerContainer
listenerContainer
- 設定するリスナーコンテナー protected abstract MessageListenerEE createMessageListener(MessageListenerContainer container)
MessageListener
EE を作成します。protected StringBuilderSE getEndpointDescription()
toString()
結果に含めるために、サブクラスで使用できます。
public StringSE toString()
ObjectSE
の toStringSE