コード例 #1
0
  public void start() throws CanalStoreException {
    super.start();
    if (Integer.bitCount(bufferSize) != 1) {
      throw new IllegalArgumentException("bufferSize must be a power of 2");
    }

    indexMask = bufferSize - 1;
    entries = new Event[bufferSize];
  }
コード例 #2
0
  public void stop() throws CanalStoreException {
    super.stop();

    cleanAll();
  }