Cosminexus V9 アプリケーションサーバ Cosminexus Reliable Messaging

[目次][用語][索引][前へ][次へ]

7.8.1 BytesContainerFactoryインタフェース

BytesContainerFactoryインタフェースはBytesContainerを生成します。

アプリケーションでは,QueueConnectionオブジェクトのcreateQueueSessionメソッドで取得したQueueSessionオブジェクトに対してBytesContainerFactory をキャストすることによって,BytesContainerFactoryオブジェクトを取得できます。

<この項の構成>
(1) BytesContainerの生成
(2) 形式
(3) フィールド
(4) メソッド

(1) BytesContainerの生成

createBytesContainerメソッドを呼び出すことでBytesContainerを生成します。

(2) 形式

 
public interface BytesContainerFactory
{
  public BytesContainer createBytesContainer();
}
 

(3) フィールド

ありません。

(4) メソッド

「(2) 形式」に記載した順序で各メソッドを説明します。

(a) createBytesContainerメソッド
 
public BytesContainer createBytesContainer()
 

BytesContainerを作成します。