Skip to content

Instantly share code, notes, and snippets.

@ArturSkowronski
Created August 9, 2018 16:43
Show Gist options
  • Save ArturSkowronski/39dd4f1c468f70ee02e551ca6e3bda64 to your computer and use it in GitHub Desktop.
Save ArturSkowronski/39dd4f1c468f70ee02e551ca6e3bda64 to your computer and use it in GitHub Desktop.
class PushLayersStep
implements AsyncStep<ImmutableList<AsyncStep<PushBlobStep>>>,
Callable<ImmutableList<AsyncStep<PushBlobStep>>> {
/*(...)*/
private PushBlobStep makePushBlobStep(AsyncStep<? extends CachedLayer> cachedLayerStep)
throws ExecutionException {
CachedLayer cachedLayer = NonBlockingSteps.get(cachedLayerStep);
return new PushBlobStep(
listeningExecutorService,
buildConfiguration,
authenticatePushStep,
cachedLayer.getBlobDescriptor(),
cachedLayer.getBlob());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment