Class ObjectUserImpl<O>
java.lang.Object
net.officefloor.frame.impl.execute.office.ObjectUserImpl<O>
- All Implemented Interfaces:
ObjectUser<O>
ObjectUser implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionObjectUserImpl(String boundObjectName, MonitorClock monitorClock) Instantiate. -
Method Summary
-
Constructor Details
-
ObjectUserImpl
Instantiate.- Parameters:
boundObjectName- Bound object name.monitorClock-MonitorClock.
-
-
Method Details
-
getObject
Obtains the object. This method will block until the object is available, a failure or time out waiting.- Parameters:
timeoutInMilliseconds- Time out in milliseconds to block waiting for object to become available.- Returns:
- Object.
- Throws:
Throwable- If fails to obtain the object.
-
use
Description copied from interface:ObjectUserProvides the object for using.- Specified by:
usein interfaceObjectUser<O>- Parameters:
object- Object for use.failure-Throwableif fails to load theObject.
-