public class ProcessorUtility
extends java.lang.Object
implements javax.media.ControllerListener
Constructor and Description |
---|
ProcessorUtility()
Initializes a new ProcessorUtility instance.
|
Modifier and Type | Method and Description |
---|---|
void |
controllerUpdate(javax.media.ControllerEvent ce)
This method is called when an event is generated by a
Controller that this listener is registered with. |
boolean |
waitForState(javax.media.Processor processor,
int state)
Waits until processor enters state and returns a boolean
indicating success or failure of the operation.
|
public ProcessorUtility()
public void controllerUpdate(javax.media.ControllerEvent ce)
Controller
that this listener is registered with. We use
the event to notify all waiting on our lock and record success or
failure.controllerUpdate
in interface javax.media.ControllerListener
ce
- The event generated.public boolean waitForState(javax.media.Processor processor, int state)
processor
- Processorstate
- one of the Processor.XXXed state vars
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.