kiwi.util
Interface Resource
- All Known Implementing Classes:
- IntervalTimer
- public interface Resource
An interface that describes a resource. A resource is an exclusive
entity that may be in use by one thread at a time; a thread must reserve a
resource from a resource pool, use the resource, and then release the
resource so that it may be used by another thread.
- Author:
- Mark Lindner, PING Software Group
- See Also:
ResourcePool
Method Summary |
void |
release()
Release the resource. |
void |
reserve()
Reserve the resource. |
reserve
public void reserve()
- Reserve the resource.
release
public void release()
- Release the resource.