@Override
  public synchronized boolean isEmpty() {
    return size() == 0;
  }
Cache size.

@return the cache size
services/tasks/src/main/java/org/hyperledger/besu/services/tasks/CachingTaskCollection.java