public class SessionArrayValue extends ArrayValueWrapper implements CacheListener, java.io.Serializable
ArrayValue.AbstractGet, ArrayValue.Entry, ArrayValue.EntryIterator, ArrayValue.EntrySet, ArrayValue.GetKey, ArrayValue.GetValue, ArrayValue.KeyComparator, ArrayValue.KeyIterator, ArrayValue.KeySet, ArrayValue.ValueCollection, ArrayValue.ValueComparator, ArrayValue.ValueIterator
Modifier and Type | Field and Description |
---|---|
protected long |
_accessTime |
protected static java.util.logging.Logger |
log |
L, NULL_ARGS, NULL_VALUE_ARRAY
Constructor and Description |
---|
SessionArrayValue(java.lang.String id,
long now,
long maxInactiveInterval) |
SessionArrayValue(java.lang.String id,
long now,
long maxInactiveInterval,
ArrayValue array) |
Modifier and Type | Method and Description |
---|---|
void |
addUse() |
Value |
copy(Env env,
java.util.IdentityHashMap<Value,Value> map)
Copy for serialization
|
boolean |
decode(Env env,
StringValue encoded)
Decodes encoded values, adding them to this object.
|
java.lang.String |
encode(Env env)
Encoding for serialization.
|
void |
finish()
Cleaning up session stuff at the end of a request.
|
long |
getAccessTime() |
java.lang.String |
getId()
Returns the session id.
|
long |
getMaxInactiveInterval() |
boolean |
inUse() |
void |
invalidate()
Invalidates the session.
|
boolean |
isEmpty()
Returns true if the value is empty
|
boolean |
isValid() |
boolean |
load() |
void |
load(Env env,
java.io.InputStream in) |
protected void |
remove() |
void |
removeEvent()
Callback when the session is removed from the session cache, generally
because the session cache is full.
|
void |
reset(long now) |
void |
setAccess(long now) |
void |
setId(java.lang.String id)
Changes the session id.
|
void |
setValid(boolean isValid) |
protected void |
store() |
void |
store(Env env,
java.io.OutputStream out)
Saves the object to the output stream.
|
void |
storeOnShutdown()
Store on shutdown.
|
java.lang.Object |
toObject()
Converts to an object.
|
add, append, clear, contains, containsKey, containsStrict, copy, copySaveFunArg, createTailKey, current, each, end, get, getArg, getArray, getHead, getIterator, getKeyIterator, getSize, getTail, getValueIterator, getVar, hasCurrent, isset, key, next, pop, prev, put, put, putVar, remove, reset, shuffle, splice, unshift
append, callCallback, callCallback, callCallback, cmp, copyReturn, entrySet, eq, eql, geq, getArray, getBaseIterator, getCount, getCountRecursive, getCurrent, getIterator, getKeyArray, getKeys, getObject, getRaw, getType, getValueArray, getValues, getValueType, gt, isArray, isCallable, isEmpty, jsonEncode, jsonEncodeAssociative, keyExists, keyReset, keySet, keysToArray, leq, lt, print, printREntry, printRImpl, put, put, put, put, put, put, put, put, put, put, put, putAll, serialize, setCurrent, slice, sort, toArray, toArray, toArrayValue, toAutoArray, toBinaryValueMarshalCost, toBoolean, toCallable, toCharMarshalCost, toDouble, toEntryArray, toJavaCollection, toJavaList, toJavaMap, toJavaObject, toKey, toLocalRef, toLong, toObject, toString, toStringMarshalCost, toStringValueMarshalCost, toUnicodeValueMarshalCost, values, valuesToArray, valuesToArray, varDumpEntry, varDumpImpl, varExportImpl
abs, add, addOne, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, copy, copyArrayItem, copyStringBuilder, copyTree, div, div, eqValue, findFunction, findQuercusClass, generate, get, getArgTail, getCallableName, getCalledClass, getClassName, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getObject, getObjectHash, getQuercusClass, getRef, getResourceType, getStaticFieldValue, getStaticFieldVar, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, hashCode, increment, initField, initField, initField, initIncompleteField, isA, isA, isBinary, isBoolean, isDefault, isDouble, isDoubleConvertible, isFieldExists, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, issetField, issetThisField, isString, isUnicode, isVar, length, lshift, mod, mul, mul, neg, nextIndex, pos, postdecr, postincr, postincr, predecr, preincr, preincr, print, printDepth, printJavaChar, printJavaString, printR, put, putArray, putField, putField, putField, putObject, putThisField, putThisField, putThisFieldArray, rshift, serialize, set, setCharValueAt, setFieldInit, setJavaObject, setStaticFieldRef, sub_rev, sub, sub, subOne, toArgRef, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toChar, toCharArrayMarshalCost, toDebugString, toDouble, toDouble, toDouble, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaDate, toJavaDouble, toJavaEnum, toJavaFloat, toJavaInteger, toJavaLong, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLong, toLong, toLong, toLongMarshalCost, toLongValue, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringValue, toStringValue, toUnicode, toUnicodeValue, toUnicodeValue, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, unsetThisPrivateField, varDump, varExport
protected static final java.util.logging.Logger log
protected long _accessTime
public SessionArrayValue(java.lang.String id, long now, long maxInactiveInterval)
public SessionArrayValue(java.lang.String id, long now, long maxInactiveInterval, ArrayValue array)
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.Object toObject()
toObject
in class ArrayValue
public Value copy(Env env, java.util.IdentityHashMap<Value,Value> map)
copy
in class ArrayValueWrapper
public java.lang.String encode(Env env)
public boolean decode(Env env, StringValue encoded)
public boolean inUse()
public void addUse()
public boolean load()
public void store(Env env, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void load(Env env, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void finish()
If the session data has changed and we have persistent sessions, save the session. However, if save-on-shutdown is true, only save on a server shutdown.
public void storeOnShutdown()
protected void store()
public long getMaxInactiveInterval()
public void reset(long now)
public long getAccessTime()
public void setAccess(long now)
public boolean isValid()
public void setValid(boolean isValid)
public void invalidate()
protected void remove()
public boolean isEmpty()
ArrayValue
isEmpty
in class ArrayValue
public void removeEvent()
removeEvent
in interface CacheListener