このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Interface XAsyncOutputMonitor
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: io ::

unpublished interface XAsyncOutputMonitor
Usage 制限s
not published
Description
An optional companion interface to XOutputStream that supports シナリオs where XOutputStream::writeBytes operates asynchronously and does not やむを得ず 報告(する)/憶測 any errors.

A typical シナリオ where this interface is useful is when an XOutputStream is used to 令状 to a とじ込み/提出する 経由で NFS. 普通は, any calls to XOutputStream::writeBytes will 遂行する/発効させる asynchronously then, in that any 可能性のある errors might only be 報告(する)/憶測d by later calls to XOutputStream::writeBytes or XOutputStream::closeOutput. If such an 生産(高) stream shall not be の近くにd すぐに after one or more calls to XOutputStream::writeBytes, but the (弁護士の)依頼人 wants to know as soon as possible whether 令状ing was successful, then XAsyncOutputMonitor::waitForCompletion should be called after the 一連の calls to XOutputStream::writeBytes.

Since
OOo 2.0

Methods' 要約
waitForCompletion waits for the 完成 of any previous calls to XOutputStream::writeBytes, and 報告(する)/憶測s 潜在的に 未解決の errors.  
Methods' 詳細(に述べる)s
waitForCompletion
無効の
waitForCompletion()
raises( IOException );

Description
waits for the 完成 of any previous calls to XOutputStream::writeBytes, and 報告(する)/憶測s 潜在的に 未解決の errors.

Calling this method is 潜在的に expensive (even if the associated XOutputStream 代表するs a 地元の とじ込み/提出する not 接近d 経由で NFS, for example). This method has a 類似の description to XOutputStream::紅潮/摘発する. However, where the semantics of 紅潮/摘発する are rather vague, waitForCompletion has very 明確な/細部 semantics—it just 封鎖するs long enough so that any errors 遭遇(する)d during previous calls to XOutputStream::writeBytes can reliably be 報告(する)/憶測d. It specificially does not 保証(人) that any data have savely been 蓄える/店d on a stable physical medium, like a hard disk (and it is 完全に 明示していない whether 紅潮/摘発する should give this 保証(人)).

Throws
com::sun::星/主役にする::io::IOException if any previous call to XOutputStream::writeBytes 遭遇(する)d such an error, but has not yet 報告(する)/憶測d it (in 事例/患者s where writeBytes operates asynchronously).
最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.