com.atlassian.confluence.rss
Class FeedTimeoutEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.event.Event
com.atlassian.confluence.event.events.ConfluenceEvent
com.atlassian.confluence.rss.FeedTimeoutEvent
- All Implemented Interfaces:
- Serializable
public class FeedTimeoutEvent
- extends ConfluenceEvent
An event sent when a Timeout
occurs when rendering a SyndEntry
.
- See Also:
- Serialized Form
Methods inherited from class com.atlassian.event.Event |
equals, hashCode |
Methods inherited from class org.springframework.context.ApplicationEvent |
getTimestamp |
FeedTimeoutEvent
public FeedTimeoutEvent(Object src,
ConfluenceEntityObject entity,
long allowedTimeInSeconds,
long exceededTimeInMilliseconds,
int numResultsToRender,
int numResultsRendered)
forTimeout
public static FeedTimeoutEvent forTimeout(Object src,
ConfluenceEntityObject entity,
com.atlassian.util.concurrent.Timeout timeout,
int numResultsToRender,
int numResultsRendered)
getEntity
public ConfluenceEntityObject getEntity()
- Returns:
- the entity where this macro was being rendered.
getAllowedTimeInSeconds
public long getAllowedTimeInSeconds()
- Returns:
- the number of seconds the timeout was set for.
getExceededTimeInMilliseconds
public long getExceededTimeInMilliseconds()
- Returns:
- the number of milliseconds since the timeout expired at the time the event was created.
getNumResultsToRender
public int getNumResultsToRender()
- Returns:
- the number of results that were supposed to be rendered.
getNumResultsRendered
public int getNumResultsRendered()
- Returns:
- the number of results that were successfully rendered before the timeout.
Copyright © 2003-2012 Atlassian. All Rights Reserved.