|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.xml.async.ResourceManager
Deprecated. Simple semaphore that maintains access to fixed number of logical resources.
public class ResourceManager
Constructor Summary | |
---|---|
ResourceManager(int size) Deprecated. The ResourceManager constructor |
Method Summary | |
---|---|
boolean |
activeFound() Deprecated. Checks if any of the logical resources being managed are in active use |
void |
getResource() Deprecated. If the number of resources available for use is nonzero, the method decreases the number of resources by one. |
void |
releaseResource() Deprecated. Releases a resource. |
void |
sleep(int i) Deprecated. Allows usage of Thread.sleep() without try/catch |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceManager(int size)
i
- - the number of resources to manageMethod Detail |
---|
public void getResource()
public void releaseResource()
public boolean activeFound()
true
- if one or more resource is in use false
- if none of the resources are in usepublic void sleep(int i)
|
Oracle® Database XML Java API Reference 12c Release 1 (12.1) E15981-09 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2003, 2014, Oracle and/or its affiliates. All rights reserved.