Singleton Example (1/2)
public class ObjectMonitor {
private static ObjectMonitor instance = new ObjectMonitor();
private int acceptedRQs = 0;
private int deniedRQs = 0;
private boolean inUse = false;
private ObjectMonitor() {}
public static ObjectMonitor getInstance() {
public int numOfAcceptedRequests() {
public int numOfDeniedRequests() {