public AbstractSequencer(int bufferSize,WaitStrategy waitStrategy){
  if (bufferSize < 1) {
    throw new IllegalArgumentException("bufferSize must not be less than 1");
  }
  if (Integer.bitCount(bufferSize) != 1) {
    throw new IllegalArgumentException("bufferSize must be a power of 2");
  }
  this.bufferSize=bufferSize;
  this.waitStrategy=waitStrategy;
}

public AbstractSequencer ( int bufferSize , WaitStrategy waitStrategy ) { if ( bufferSize < 1 ) { throw new IllegalArgumentException ( "bufferSize must not be less than 1" ) ; } if ( Integer . bitCount ( bufferSize ) != 1 ) { throw new IllegalArgumentException ( "bufferSize must be a power of 2" ) ; } this . bufferSize = bufferSize ; this . waitStrategy = waitStrategy ; }
create with the specified buffer size and wait strategy .
