Class PersistedMessagesContainer
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.messagesSources.PersistedMessagesContainer
-
- All Implemented Interfaces:
BuildMessagesContainer
public class PersistedMessagesContainer extends Object implements BuildMessagesContainer
-
-
Field Summary
Fields Modifier and Type Field Description static StringPERSISTED_PREFIX
-
Constructor Summary
Constructors Constructor Description PersistedMessagesContainer(List<BuildMessage1> messages, PersistedMessagesLoader messagesLoader, File persistedFilesDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()After calling this method, the container is supposed to be not in use anymore, all associated resources should be released.List<BuildMessage1>getMessages()intsize()
-
-
-
Field Detail
-
PERSISTED_PREFIX
public static final String PERSISTED_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PersistedMessagesContainer
public PersistedMessagesContainer(@NotNull List<BuildMessage1> messages, @NotNull PersistedMessagesLoader messagesLoader, @NotNull File persistedFilesDirectory) throws BuildMessagesContainerException- Throws:
BuildMessagesContainerException
-
-
Method Detail
-
getMessages
@NotNull public List<BuildMessage1> getMessages() throws BuildMessagesContainerException
- Specified by:
getMessagesin interfaceBuildMessagesContainer- Throws:
BuildMessagesContainerException
-
size
public int size()
- Specified by:
sizein interfaceBuildMessagesContainer
-
dispose
public void dispose() throws BuildMessagesContainerExceptionDescription copied from interface:BuildMessagesContainerAfter calling this method, the container is supposed to be not in use anymore, all associated resources should be released. For example, the implementation of this method, which persists messages in file, could delete corresponding file- Specified by:
disposein interfaceBuildMessagesContainer- Throws:
BuildMessagesContainerException- if failed to release resources
-
-