private void waitForRequest() {
        try {
            while (!Thread.currentThread().isInterrupted()) {
                Socket socket = serverSocket.accept();
                Logger.debug("Accept new socket " + socket);
                socketProcessor.submit(new SocketProcessorRunnable(socket));
            }
        } catch (IOException e) {
            onError(new ProxyCacheException("Error during waiting connection", e));
        }
    }
Checks is cache contains fully cached file for particular url.

@param url an url cache file will be checked for.
@return {@code true} if cache contains fully cached file for passed in parameters url.
VideoCache/src/main/java/com/yc/videocache/HttpProxyCacheServer.java