private void done ( ) { if ( longThreadPool != null && isLong ) { transport . updateLongRunningFree ( address , longThreadPool . getNumberOfFreeThreads ( ) + 1 ) ; } else { transport . updateShortRunningFree ( address , shortThreadPool . getNumberOfFreeThreads ( ) + 1 ) ; } }
Send the done signal to other nodes We are adding 1 to the result since the thread officially has been released yet but will be shortly