public void start ( String tapeName , Optional < TapeMode > mode , Optional < MatchRule > matchRule ) { if ( tape != null ) { throw new IllegalStateException ( "start called when Recorder is already started" ) ; } tape = getTapeLoader ( ) . loadTape ( tapeName ) ; tape . setMode ( mode . or ( configuration . getDefaultMode ( ) ) ) ; tape . setMatchRule ( matchRule . or ( configuration . getDefaultMatchRule ( ) ) ) ; for ( RecorderListener listener : listeners ) { listener . onRecorderStart ( tape ) ; } }
Starts the Recorder inserting a tape with the specified parameters .