|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjenkins.plugins.htmlaudio.domain.impl.VolatileBuildEventRepository
public final class VolatileBuildEventRepository
Simple in-memory implementation of BuildEventRepository.
| Constructor Summary | |
|---|---|
VolatileBuildEventRepository()
|
|
| Method Summary | |
|---|---|
void |
add(BuildEvent event)
Adds a new BuildEvent. |
java.util.Collection<BuildEvent> |
findNewerThan(long buildEventId)
Returns each BuildEvent that is newer than, i.e. |
java.lang.Long |
getLastEventId()
Returns the id of the newest BuildEvent or null if the repository is empty. |
java.util.Collection<BuildEvent> |
list()
Returns each existing BuildEvent. |
void |
remove(BuildEvent event)
Removes an existing BuildEvent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VolatileBuildEventRepository()
| Method Detail |
|---|
public void add(BuildEvent event)
BuildEventRepositoryBuildEvent.
add in interface BuildEventRepositorypublic void remove(BuildEvent event)
BuildEventRepositoryBuildEvent.
remove in interface BuildEventRepositorypublic java.util.Collection<BuildEvent> list()
BuildEventRepositoryBuildEvent.
list in interface BuildEventRepositorypublic java.util.Collection<BuildEvent> findNewerThan(long buildEventId)
BuildEventRepositoryBuildEvent that is newer than, i.e. happened after, a provided event.
findNewerThan in interface BuildEventRepositorypublic java.lang.Long getLastEventId()
BuildEventRepositoryBuildEvent or null if the repository is empty.
getLastEventId in interface BuildEventRepository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||