クラス GrpcInboundGateway
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.gateway.MessagingGatewaySupport
org.springframework.integration.grpc.inbound.GrpcInboundGateway
- 実装済みのインターフェース一覧:
io.grpc.BindableService, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ApplicationContextAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, ExpressionCapable, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent
gRPC
BindableService の MessagingGatewaySupport 実装。このクラスのインスタンスには、gRPC サービス定義の BindableService クラスが必要です。生成された AsyncService インターフェースを実装する標準の 'grpc' サービスのみがサポートされています。このゲートウェイは、gRPC サーバーに登録される BindableService です。gRPC メソッド呼び出しをインターセプトして Spring Integration メッセージに変換するための内部プロキシが作成されます。ダウンストリームフローからのレスポンスは、gRPC レスポンスペイロードに返されます。リクエストペイロードは、gRPC リクエストからの Proto メッセージです。レスポンスペイロードは、gRPC レスポンスの Proto メッセージである必要があります。 このゲートウェイは、すべての gRPC MethodDescriptor.MethodType 型をサポートしています。すべてのリクエストは、MessagingGatewaySupport.sendAndReceiveMessageReactive(Object) を介してリアクティブにダウンストリームフローに送信されます。ダウンストリーム処理ロジックの観点からは、MethodDescriptor.MethodType.UNARY と MethodDescriptor.MethodType.BIDI_STREAMING は同じです。MethodDescriptor.MethodType.CLIENT_STREAMING は、gRPC リクエストペイロードの Flux を生成します。MethodDescriptor.MethodType.SERVER_STREAMING 応答は、単一のエンティティ、またはそれらの Flux になります。
便宜上、GrpcHeaders はリクエストメッセージに格納されます。このような情報は、たとえば、下流フローにおけるルーティングなどに利用できます。
- 導入:
- 7.1
- 作成者:
- Artem Bilan, Glenn Renfro
ネストされたクラスの概要
クラス MessagingGatewaySupport から継承されたネストクラス / インターフェース
MessagingGatewaySupport.ConvertingMessagingTemplateインターフェース IntegrationManagement から継承されたネストクラス / インターフェース
IntegrationManagement.ManagementOverridesフィールド概要
クラス MessagingGatewaySupport から継承されたフィールド
messagingTemplateクラス AbstractEndpoint から継承されたフィールド
lifecycleLockクラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerインターフェース IntegrationManagement から継承されたフィールド
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEインターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター方法の概要
クラス MessagingGatewaySupport から継承されたメソッド
buildErrorMessage, buildSendTimer, destroy, doStart, doStop, getComponentType, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getManagedName, getManagedType, getOverrides, getReplyChannel, getRequestChannel, getRequestChannelName, isLoggingEnabled, isObserved, receive, receive, receiveMessage, receiveMessage, registerMetricsCaptor, registerObservationRegistry, registerReplyMessageCorrelatorIfNecessary, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, sendTimer, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setErrorOnTimeout, setLoggingEnabled, setManagedName, setManagedType, setObservationConvention, setReceiverObservationConvention, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrackクラス AbstractEndpoint から継承されたメソッド
doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopクラス IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringクラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, wait, waitSE, waitSEインターフェース IntegrationManagement から継承されたメソッド
getThisAsインターフェース NamedComponent から継承されたメソッド
getBeanName, getComponentNameインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
GrpcInboundGateway
方法の詳細
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
MessagingGatewaySupportのonInit
bindService
public io.grpc.ServerServiceDefinition bindService()- 次で指定:
- インターフェース
io.grpc.BindableService内のbindService