tryAcquireResources
Called before run to try to acquire all the resources required for its execution. These may be, but are not limited to:
disk space,
heap space,
JDBC connections from a connection pool,
API tokens,
etc.
The CDK is not aware of resources; resource management is the responsibility of the connector implementation. Implementations of this method should not block the thread; in fact they should never be slow because the invocation of tryAcquireResources is guarded by a lock to ensure serial execution.
This tryAcquireResources method may also be used to coordinate work. For example, the connector may require the global Feed to wait until all stream Feeds are done.
This method gets called multiple times.