class SimpleNonceProvider implements NonceProvider {

  @Override
  public long incrementAndGetNonce(final AccountAddress accountAddress) {
    assertNotNull(accountAddress, "AccountAddress must not null");
    try {
      return this.cache.get(accountAddress).incrementAndGet();
    } catch (Exception e) {
      throw new HerajException(e);
    }
  }

  public  SimpleNonceProvider();
  public  SimpleNonceProvider(final int capacity);

}