Package sonia.scm.repository.spi
Interface DiffCommand
public interface DiffCommand
- Since:
- 1.17
-
Method Summary
Modifier and TypeMethodDescriptiongetDiffResult
(DiffCommandRequest request) Implementations of this method have to ensure, that all resources are released when the stream ends.getDiffResultInternal
(DiffCommandRequest request) Override this ifgetDiffResult(DiffCommandRequest)
releases resources that will prevent other commands from execution, so that these resources are not released with this function.
-
Method Details
-
getDiffResult
DiffCommandBuilder.OutputStreamConsumer getDiffResult(DiffCommandRequest request) throws IOException Implementations of this method have to ensure, that all resources are released when the stream ends. This implementation is used for streaming results, where there are no more requests with the same context will be expected, whatsoever. If this closes resources that will prevent further commands from execution, you have to overridegetDiffResultInternal(DiffCommandRequest)
that will return the same as this functions, but must not release these resources so that subsequent commands will still function.- Throws:
IOException
-
getDiffResultInternal
default DiffCommandBuilder.OutputStreamConsumer getDiffResultInternal(DiffCommandRequest request) throws IOException Override this ifgetDiffResult(DiffCommandRequest)
releases resources that will prevent other commands from execution, so that these resources are not released with this function. Defaults to a simple call togetDiffResult(DiffCommandRequest)
.- Throws:
IOException
- Since:
- 2.36.0
-