Class PatchKeepAlive
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.projectSources.PatchKeepAlive
-
public class PatchKeepAlive extends Object
-
-
Constructor Summary
Constructors Constructor Description PatchKeepAlive(EventDispatcher<BuildServerListener> events, ExecutorServices executors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
runWithKeepAlive(LowLevelPatchBuilder original, jetbrains.buildServer.serverSide.impl.projectSources.PatchKeepAlive.BuildPatchAction action)
Runs the given action and keeps the patch stream alive in background by periodically writing NO_OP
-
-
-
Constructor Detail
-
PatchKeepAlive
public PatchKeepAlive(@NotNull EventDispatcher<BuildServerListener> events, @NotNull ExecutorServices executors)
-
-
Method Detail
-
runWithKeepAlive
public void runWithKeepAlive(@NotNull LowLevelPatchBuilder original, @NotNull jetbrains.buildServer.serverSide.impl.projectSources.PatchKeepAlive.BuildPatchAction action) throws IOException
Runs the given action and keeps the patch stream alive in background by periodically writing NO_OP- Parameters:
original
- patchBuilder to wrap into KeepAliveBuilder, will be passed as an argument to the provided actionaction
- action to run- Throws:
IOException
- in case of the error
-
-