Interface StatefulBuildLog

    • Method Detail

      • synchronizeState

        @NotNull
        StateSynchronizationResult synchronizeState​(@NotNull
                                                    List<LogMessageData> messages,
                                                    @NotNull
                                                    Map<Integer,​Long> clientFlowSnapshotVersions,
                                                    @NotNull
                                                    FlushDirective flushDirective,
                                                    boolean lastMessageLoggingResultRequested)
        Accepts unprocessed messages, logs them and returns an update for build-log state snapshot.
        Parameters:
        messages - list of messages to be logged.
        clientFlowSnapshotVersions - flow snapshot versions known by client (the method should only provide snapshot for flows that are outdated or missing). If client does not have any snapshots, then empty map should be provided.
        flushRequired - should messages in buffer be flushed to the disk.
        lastMessageLoggingResultRequested - should result of last message logging be included into the response.
        Returns:
        an update for the build-log snapshot.
      • hasNotFlushedMessages

        boolean hasNotFlushedMessages()
      • isClosed

        boolean isClosed()
      • close

        void close()
      • dispose

        void dispose()