クラス AmqpClientInterceptor
- java.lang.ObjectSE
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteAccessor
-
- org.springframework.amqp.remoting.client.AmqpClientInterceptor
- 実装済みのインターフェース一覧:
Advice、Interceptor、MethodInterceptor、Aware、BeanClassLoaderAware
- 既知の直属サブクラス
AmqpProxyFactoryBean
@DeprecatedSE public class AmqpClientInterceptor extends RemoteAccessor implements MethodInterceptor
使用すべきではありません。3.0.0 で削除されます。RMI スタイルの AMQP サービスにアクセスするためのMethodInterceptor。- 導入:
- 1.2
- 作成者:
- David Bilge, Gary Russell
- 関連事項:
AmqpInvokerServiceExporter,AmqpProxyFactoryBean,RemoteAccessException
フィールド概要
クラス org.springframework.remoting.support.RemotingSupport から継承されたフィールド
logger
コンストラクター概要
コンストラクター コンストラクター 説明 AmqpClientInterceptor()使用すべきではありません。
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 非推奨のメソッド 修飾子と型 メソッド 説明 AmqpTemplategetAmqpTemplate()使用すべきではありません。RemoteInvocationFactorygetRemoteInvocationFactory()使用すべきではありません。StringSEgetRoutingKey()使用すべきではありません。ObjectSEinvoke(MethodInvocation invocation)使用すべきではありません。voidsetAmqpTemplate(AmqpTemplate amqpTemplate)使用すべきではありません。メッセージの送信と結果の受信に使用される AMQP テンプレート。voidsetRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)使用すべきではありません。このアクセサーに使用する RemoteInvocationFactory を設定します。voidsetRoutingKey(StringSE routingKey)使用すべきではありません。サービスに呼び出しを送信するためのルーティングキー。クラス org.springframework.remoting.support.RemoteAccessor から継承されたメソッド
getServiceInterface, setServiceInterface
クラス org.springframework.remoting.support.RemotingSupport から継承されたメソッド
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
メソッドの詳細
invoke
public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
使用すべきではありません。- 次で指定:
- インターフェース
MethodInterceptor内のinvoke - 例外:
ThrowableSE
getAmqpTemplate
public AmqpTemplate getAmqpTemplate()
使用すべきではありません。
setAmqpTemplate
public void setAmqpTemplate(AmqpTemplate amqpTemplate)
使用すべきではありません。メッセージの送信と結果の受信に使用される AMQP テンプレート。このクラスは、Spring-AMQP ドキュメントで説明されているように、メッセージの送信に「リクエスト / リプライ」を使用しています。- パラメーター:
amqpTemplate- amqp テンプレート。
getRoutingKey
public StringSE getRoutingKey()
使用すべきではありません。
setRoutingKey
public void setRoutingKey(StringSE routingKey)
使用すべきではありません。サービスに呼び出しを送信するためのルーティングキー。これを使用して、メッセージをブローカーの特定のキューにルーティングします。設定されていない場合、AmqpTemplateのデフォルトのルーティングキーが使用されます。このプロパティは、同じ AmqpTemplate を使用して複数のサービスと通信する場合に役立ちます。
- パラメーター:
routingKey- ルーティングキー。
getRemoteInvocationFactory
public RemoteInvocationFactory getRemoteInvocationFactory()
使用すべきではありません。
setRemoteInvocationFactory
public void setRemoteInvocationFactory(RemoteInvocationFactory remoteInvocationFactory)
使用すべきではありません。このアクセサーに使用する RemoteInvocationFactory を設定します。デフォルトはDefaultRemoteInvocationFactoryです。カスタム呼び出しファクトリは、ユーザー資格情報など、さらにコンテキスト情報を呼び出しに追加できます。
- パラメーター:
remoteInvocationFactory- リモート呼び出しファクトリ。