com.atlassian.jira.web.servletcontext
Class ServletContextLong

java.lang.Object
  extended by com.atlassian.jira.web.servletcontext.ServletContextLong
All Implemented Interfaces:
java.io.Serializable

public class ServletContextLong
extends java.lang.Object
implements java.io.Serializable

A long variable that is tied to the life of the current servlet context

Since:
v4.2
See Also:
Serialized Form

Constructor Summary
ServletContextLong(java.lang.String attributeName)
          Constructs a reference that has a 0 value
 
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
 

Constructor Detail

ServletContextLong

public ServletContextLong(java.lang.String attributeName)
Constructs a reference that has a 0 value

Parameters:
attributeName - the name of the servlet context reference
Method Detail

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-2010 Atlassian. All Rights Reserved.