jenkins.plugins.htmlaudio.domain.impl
Class VolatileBuildEventRepository

java.lang.Object
  extended by jenkins.plugins.htmlaudio.domain.impl.VolatileBuildEventRepository
All Implemented Interfaces:
BuildEventRepository

public final class VolatileBuildEventRepository
extends java.lang.Object
implements BuildEventRepository

Simple in-memory implementation of BuildEventRepository.

Author:
Lars Hvile

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

VolatileBuildEventRepository

public VolatileBuildEventRepository()
Method Detail

add

public void add(BuildEvent event)
Description copied from interface: BuildEventRepository
Adds a new BuildEvent.

Specified by:
add in interface BuildEventRepository

remove

public void remove(BuildEvent event)
Description copied from interface: BuildEventRepository
Removes an existing BuildEvent.

Specified by:
remove in interface BuildEventRepository

list

public java.util.Collection<BuildEvent> list()
Description copied from interface: BuildEventRepository
Returns each existing BuildEvent.

Specified by:
list in interface BuildEventRepository

findNewerThan

public java.util.Collection<BuildEvent> findNewerThan(long buildEventId)
Description copied from interface: BuildEventRepository
Returns each BuildEvent that is newer than, i.e. happened after, a provided event.

Specified by:
findNewerThan in interface BuildEventRepository

getLastEventId

public java.lang.Long getLastEventId()
Description copied from interface: BuildEventRepository
Returns the id of the newest BuildEvent or null if the repository is empty.

Specified by:
getLastEventId in interface BuildEventRepository


Copyright © 2004-2011. All Rights Reserved.