operateOnResourceWithoutTimeout<ReturnType> abstract method

Future<void> operateOnResourceWithoutTimeout<ReturnType>(
  1. OperationOnResource<PoolResourceType, ReturnType> operationOnResource
)

Try to borrow a resource from the pool. If the pool has no resource available, try to create a new one. If the pool is full, then throw an exception GetResourceFromPoolFailed.

Throw CreateResourceFailed if failed to create a new resource.

Notice that it will not catch any exception thrown by the PoolResource.onRelease or PoolResource.onReset method, simply rethrow.

Implementation

Future<void> operateOnResourceWithoutTimeout<ReturnType>(
    OperationOnResource<PoolResourceType, ReturnType> operationOnResource);