@Deprecated public final class Valve extends Object
Constructor and Description |
---|
Valve(boolean on)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
decrement()
Deprecated.
Decrements the use counter of the valve.
|
void |
increment()
Deprecated.
Increments the use counter of the valve.
|
boolean |
isOn()
Deprecated.
|
void |
turnOff()
Deprecated.
Turns the valve off.
|
void |
turnOn()
Deprecated.
Turns the valve on.
|
public Valve(boolean on)
public void turnOn() throws InterruptedException
InterruptedException
- if wait is interruptedpublic boolean isOn()
public void turnOff() throws InterruptedException
InterruptedException
- if wait is interruptedpublic void increment() throws InterruptedException
InterruptedException
- if wait is interruptedpublic void decrement()
Copyright © 2005–2014. All rights reserved.