super(dispatcher, callerIdentity); mSilenceDurationMs = silenceDurationMs;
getDispatcher().dispatchOnStart(); boolean wasStopped = false; if (mSilenceDurationMs > 0) { wasStopped = mCondVar.block(mSilenceDurationMs); } if (wasStopped) { getDispatcher().dispatchOnStop(); } else { getDispatcher().dispatchOnSuccess(); }
mCondVar.open();