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 String
PERSISTED_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 void
dispose()
After calling this method, the container is supposed to be not in use anymore, all associated resources should be released.List<BuildMessage1>
getMessages()
int
size()
-
-
-
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:
getMessages
in interfaceBuildMessagesContainer
- Throws:
BuildMessagesContainerException
-
size
public int size()
- Specified by:
size
in interfaceBuildMessagesContainer
-
dispose
public void dispose() throws BuildMessagesContainerException
Description copied from interface:BuildMessagesContainer
After 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:
dispose
in interfaceBuildMessagesContainer
- Throws:
BuildMessagesContainerException
- if failed to release resources
-
-