Class Cache.Value<V>

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable
    Enclosing class:
    Cache<K,​V>

    public static class Cache.Value<V>
    extends java.lang.Object
    implements java.io.Externalizable
    See Also:
    Serialized Form
    • Constructor Detail

      • Value

        public Value​(V value,
                     long timeout)
      • Value

        public Value()
    • Method Detail

      • getValue

        public V getValue()
      • getInsertionTime

        public long getInsertionTime()
      • getTimeout

        public long getTimeout()
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException