站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Mutex.ExceptionAction (Utilities API) - NetBeans API Javadoc (Current Development Version)

org.openide.util 7.9.0 1

org.openide.util
Interface Mutex.ExceptionAction<T>

All Known Subinterfaces:
Mutex.Action<T>
Enclosing class:
Mutex

public static interface Mutex.ExceptionAction<T>

Action to be executed in a mutex, possibly throwing checked exceptions. May throw a checked exception, in which case calling code should catch the encapsulating exception and rethrow the real one. Unchecked exceptions will be propagated to calling code without encapsulation.


Method Summary
 T run()
          Execute the action.
 

Method Detail

run

T run()
      throws Exception
Execute the action. Can throw an exception.

Returns:
any object, then returned from Mutex.readAccess(Mutex.ExceptionAction) or Mutex.writeAccess(Mutex.ExceptionAction)
Throws:
Exception - any exception the body needs to throw

org.openide.util 7.9.0 1

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.