com.atlassian.confluence.plugins.emailgateway.service
Class InMemoryStagedEmailThreadManager

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.service.InMemoryStagedEmailThreadManager
All Implemented Interfaces:
StagedEmailThreadManager, Iterable<StagedEmailThread>

public class InMemoryStagedEmailThreadManager
extends Object
implements StagedEmailThreadManager

An uninteresting implementation of StagedEmailThreadManager that holds the values in memory. Not for production use.

Since:
v5.0

Constructor Summary
InMemoryStagedEmailThreadManager()
           
 
Method Summary
 void deleteStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
          Removes a StagedEmailThread from the store.
 StagedEmailThread findStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
          Retrieves a StagedEmailThread.
 Iterator<StagedEmailThread> iterator()
           
 void storeStagedEmailThread(StagedEmailThread stagedEmailThread)
          Stores a StagedEmailThread against the StagedEmailThreadKey contained within.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryStagedEmailThreadManager

public InMemoryStagedEmailThreadManager()
Method Detail

storeStagedEmailThread

public void storeStagedEmailThread(StagedEmailThread stagedEmailThread)
Description copied from interface: StagedEmailThreadManager
Stores a StagedEmailThread against the StagedEmailThreadKey contained within.

Specified by:
storeStagedEmailThread in interface StagedEmailThreadManager
Parameters:
stagedEmailThread - The StagedEmailThread to be stored.

findStagedEmailThread

public StagedEmailThread findStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
Description copied from interface: StagedEmailThreadManager
Retrieves a StagedEmailThread.

Specified by:
findStagedEmailThread in interface StagedEmailThreadManager
Parameters:
stagedEmailThreadKey - The key used to locate the required StagedEmailThread.
Returns:
The StagedEmailThread located for the key, or null if none found

deleteStagedEmailThread

public void deleteStagedEmailThread(StagedEmailThreadKey stagedEmailThreadKey)
Description copied from interface: StagedEmailThreadManager
Removes a StagedEmailThread from the store.

Specified by:
deleteStagedEmailThread in interface StagedEmailThreadManager
Parameters:
stagedEmailThreadKey - The key used to locate the StagedEmailThread to be deleted.

iterator

public Iterator<StagedEmailThread> iterator()
Specified by:
iterator in interface StagedEmailThreadManager
Specified by:
iterator in interface Iterable<StagedEmailThread>


Copyright © 2003-2013 Atlassian. All Rights Reserved.