Class SessionContext.Count

  • Enclosing interface:
    SessionContext

    public static class SessionContext.Count
    extends java.lang.Object
    Synchronized counter which can be passed between SessionContext instances as they are recreated.
    See Also:
    ticket:2804
    • Constructor Summary

      Constructors 
      Constructor Description
      Count​(java.lang.String uuid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decrement()
      Decrement the current reference count and return the new value atomically.
      int get()
      Return the current number of references which this session is aware of.
      int increment()
      Increment the current reference count and return the new value atomically.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Count

        public Count​(java.lang.String uuid)
    • Method Detail

      • get

        public int get()
        Return the current number of references which this session is aware of.
      • increment

        public int increment()
        Increment the current reference count and return the new value atomically.
      • decrement

        public int decrement()
        Decrement the current reference count and return the new value atomically.