public interface IRecorder extends IRecordingComponent
IClient
. A recorder can be started
,
stopped
, paused
and resumed
. Its nature and
behavior are parameterized by its recorder configuration
.
A recorder belongs to a recording session
, and has a state
.
It can be observed by listeners
.Modifier and Type | Method and Description |
---|---|
void |
addListener(IRecorderListener listener) |
RecorderConfiguration |
getRecorderConfiguration() |
RecorderState |
getState()
Returns the current state of the recorder.
|
boolean |
isPauseSupported()
Returns whether
IRecorder.pause() and IRecorder.resume() operations are supported by this recorder. |
void |
pause() |
void |
removeListener(IRecorderListener listener) |
void |
resume() |
void |
start() |
void |
stop() |
getName, getProperty, getSession, getType, sendMessage, setProperty
void start()
void stop()
void pause()
void resume()
RecorderConfiguration getRecorderConfiguration()
void addListener(IRecorderListener listener)
void removeListener(IRecorderListener listener)
RecorderState getState()
synchronized(recorder) { if (recorder.getState() == RecorderState.RECORDING) { recorder.pause(); // This method may throw an IllegalStateException // if invoked while the recorder is in STOPPING state } }
boolean isPauseSupported()
IRecorder.pause()
and IRecorder.resume()
operations are supported by this recorder.
These are optional operations and any invocation to these methods, if not supported,
will have no effect.IRecorder.pause()
and IRecorder.resume()
operations are supported by this recorder.© Copyright IBM Corp. 2013. All rights reserved.