blob: f0ab2691ad84e8c03162b4303c111f027bd8d08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// **********************************************************************
//
// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
package Freeze;
class EvictorElement
{
//
// Clean object; can become modified or destroyed
//
static final byte clean = 0;
//
// New object; can become clean, dead or destroyed
//
static final byte created = 1;
//
// Modified object; can become clean or destroyed
//
static final byte modified = 2;
//
// Being saved. Can become dead or created
//
static final byte destroyed = 3;
//
// Exists only in the Evictor; for example the object was created
// and later destroyed (without a save in between), or it was
// destroyed on disk but is still in use. Can become created.
//
static final byte dead = 4;
EvictorElement(Ice.Identity identity, ObjectStore store)
{
this.identity = identity;
this.store = store;
}
final ObjectStore store;
final Ice.Identity identity;
//
// Protected by EvictorI
//
java.util.Iterator<EvictorElement> evictPosition = null;
int usageCount = -1;
int keepCount = 0;
boolean stale = false;
//
// Protected by this
//
ObjectRecord rec = null;
byte status = clean;
}
|