Interface TemporaryWebAttachmentsMonitorLocator
- All Known Implementing Classes:
DefaultTemporaryWebAttachmentsMonitorLocator
public interface TemporaryWebAttachmentsMonitorLocator
Locator to abstract how we obtain the TemporaryWebAttachmentsMonitor.
Implementations should store one of these monitors per user session.
- Since:
- v6.4
-
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<TemporaryWebAttachmentsMonitor> get()Retrieves TemporaryStreamAttachmentsMonitor from store or creates new one if needed.
-
Method Details
-
get
io.atlassian.fugue.Option<TemporaryWebAttachmentsMonitor> get()- Returns:
- TemporaryStreamAttachmentsMonitor if one already exists or none in other case.
-
getOrCreate
TemporaryWebAttachmentsMonitor getOrCreate()Retrieves TemporaryStreamAttachmentsMonitor from store or creates new one if needed.- Returns:
- existing instance of TemporaryStreamAttachmentsMonitor or new one if it is not present in store.
- Throws:
IllegalStateException- if this method is invoked outside request scope
-