com.atlassian.jira.web.servletcontext
Class ServletContextLong
java.lang.Object
com.atlassian.jira.web.servletcontext.ServletContextLong
- All Implemented Interfaces:
- Serializable
public class ServletContextLong
- extends Object
- implements Serializable
A long variable that is tied to the life of the current servlet context
- Since:
- v4.2
- See Also:
- Serialized Form
Method Summary |
long |
get()
|
void |
set(long value)
Sets the value of the servlet context long |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletContextLong
public ServletContextLong(String attributeName)
- Constructs a reference that has a 0 value
- Parameters:
attributeName
- the name of the servlet context reference
set
public void set(long value)
- Sets the value of the servlet context long
- Parameters:
value
- the new value of the long
get
public long get()
- Returns:
- the current value of the servlet context long or 0 if its never been set
Copyright © 2002-2011 Atlassian. All Rights Reserved.