---
schema_version: "1"
id: b77d7f42f697a2921207bf3ad376acce38f0cdfc7312bf51beed3e24aeb66748
title: 通知設定リファレンス
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/mule-runtime/4.5/notifications-configuration-reference.md
canonical_url: https://docs.mulesoft.com/jp/mule-runtime/4.5/notifications-configuration-reference
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 78778599199a54353509d8168bfa7d94824c4a876de627f3d7495fda2870824e
description: MuleSoft Documentation Site
release: "4.5"
latest: false
---
# 通知設定リファレンス

このトピックでは、通知のために設定する要素について詳しく説明します。通知についての詳細は、​[「Mule サーバーの通知」](https://docs.mulesoft.com/jp/mule-runtime/4.5/mule-server-notifications)​を参照してください。

## [](#notifications-通知)Notifications (通知)

通知のためにリスナーを登録し、インターフェースを特定のイベントに関連付けます。

### [](#通知の属性)通知の属性

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>dynamic</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">通知マネージャーが動的な場合、実行時に動的に登録されるようにリスナーをセットアップできます。それ以外の場合、効率のために Mule の一部で通知設定がキャッシュされ、新たに有効になった通知またはリスナーのためにイベントが生成されません。<br>
<strong>型</strong>​: <code>boolean</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: <code>false</code></p></td>
</tr>
</tbody>
</table>

### [](#通知の子要素)通知の子要素

`notification`​ 要素と ​`disable-notification`​ 要素を使用してインターフェースとイベント間のリレーションを設定します。

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">基数</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>notification</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">0..*</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">イベントをインターフェースに関連付けます。インターフェースを実装するリスナーがイベントのインスタンスを受信します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>disable-notification</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">0..*</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">特定のインターフェースとのイベントの関連付けをブロックします。これにより、インターフェースとの関連付けが行われた後にイベントを絞り込むため、​<code>notification-listener</code>​ などの他の要素よりも優先されます。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>notification-listener</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">0..*</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">通知システムに対するリスナーとして Bean を登録します。イベントは反映によってディスパッチされます。つまり、リスナーは実装するインターフェースに関連付けられているすべてのイベントを受信します。</p></td>
</tr>
</tbody>
</table>

## [](#notification-通知)Notification (通知)

イベントをインターフェースに関連付けます。インターフェースを実装するリスナーがイベントのインスタンスを受信します。

### [](#通知の属性-2)通知の属性

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>event-class</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">インターフェースに配信する通知イベントのクラス名。この属性を ​<code>event</code>​ 属性の代わりに使用してカスタムクラスを指定できます。<br>
<strong>型</strong>​: <code>class name</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>event</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">配信する通知イベント。<br>
<strong>型</strong>​: <code>notificationTypes</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interface-class</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">通知イベントを受信するインターフェースのクラス名。<br>
<strong>型</strong>​: <code>class name</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interface</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">通知イベントを受信するインターフェースの名前。<br>
<strong>型</strong>​: <code>notificationTypes</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
</tbody>
</table>

`notification`​ の子要素はありません。

## [](#通知の無効化)通知の無効化

特定のインターフェースとのイベントの関連付けをブロックします。これにより、インターフェースとの関連付けが行われた後にイベントを絞り込むため、​`notification-listener`​ などの他の要素よりも優先されます。

### [](#disable-notification-の属性)disable-notification の属性

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>event-class</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">インターフェースに配信されなくなったイベントのクラス名。この属性を ​<code>event</code>​ 属性の代わりに使用してカスタムクラスを指定できます。<br>
<strong>型</strong>​: <code>class name</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>event</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">もう配信しないイベント。<br>
<strong>型</strong>​: <code>notificationTypes</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interface-class</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">イベントを受信しなくなったインターフェースのクラス名。<br>
<strong>型</strong>​: <code>class name</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>interface</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">イベントを受信しなくなったインターフェースの名前。<br>
<strong>型</strong>​: <code>notificationTypes</code><br>
<strong>必須</strong>​: いいえ<br>
<strong>デフォルト</strong>​: なし</p></td>
</tr>
</tbody>
</table>

`disable-notification`​ の子要素はありません。

## [](#通知リスナー)通知リスナー

通知システムに対するリスナーとして Bean を登録します。イベントは反映によってディスパッチされます。つまり、リスナーは実装するインターフェースに関連付けられているすべてのイベントを受信します。

## [](#通知種別)通知種別

`notification`​ 要素と ​`disable-notification`​ 要素の ​`event`​ 属性を使用して、次の種別の通知を指定できます。

- ASYNC-MESSAGE
- CONNECTION
- CONNECTOR-MESSAGE
- CONTEXT
- CUSTOM
- EXCEPTION
- EXCEPTION-STRATEGY
- MANAGEMENT
- MESSAGE-PROCESSOR
- PIPELINE-MESSAGE
- ROUTING
- SECURITY
- TRANSACTION