|
|
Syntax:
Constructors
ResourceManager(int):
public ResourceManager(int i)The ResourceManager constructor
Parameters
<code>i</code> - the number of resources to manageMethods
activeFound():
public boolean activeFound()Checks if any of the logical resources being managed are in active use
Returns
true - if one or more resource is in use false - if none of the resources are in usegetResource():
public synchronized void getResource()If the number of resources available for use is nonzero, the method decreases the number of resources by one. Otherwise, it waits until a resource is released & it becomes available for use.
releaseResource():
public void releaseResource()Releases a resource. When this method is called, the number of resources available is increased by one.
sleep(int):
public void sleep(int i)Allows usage of Thread.sleep() without try/catch
|
|
Oracle 9i Related Tutorials |
|
---|---|
Oracle 10g Tutorial | Oracle 8i Tutorial |
Informatica Tutorial | Oracle 11g Tutorial |
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.