|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ostore.cache.CacheNotify
CacheNofity
is sent by the
cache
to indicate the current
state of a cache line. e.g. cache line has been INSERT
,
REMOVE
, etc. into/from the
cache
.
The recipient of the CacheNotify
can use the notification
to dispatch
a
publish
,
unpublish
, etc.
BufferCache
,
CacheManager
Field Summary | |
---|---|
static int |
DISK_ONLY
|
static int |
FLUSHING_TO_DISK
|
static int |
INSERT
|
static int |
LOADING_FROM_DISK
|
static int |
MEM_AND_DISK
|
static int |
MEM_ONLY
|
static int |
REMOVE
|
int |
state
State of object in the cache .
|
static String[] |
STATE_STR
|
Method Summary | |
---|---|
CacheableIdentity |
getId()
getId returns the
id stored in
the CacheNotify . |
int |
getState()
getState returns the state of object in
the cache .
|
String |
toString()
Specified by java.lang.Object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int INSERT
public static final int REMOVE
public static final int MEM_ONLY
public static final int MEM_AND_DISK
public static final int FLUSHING_TO_DISK
public static final int DISK_ONLY
public static final int LOADING_FROM_DISK
public static final String[] STATE_STR
public int state
cache
.
Either INSERT
or REMOVE
.
Method Detail |
public CacheableIdentity getId()
getId
returns the
id
stored in
the CacheNotify
.
id
of the
object.public int getState()
getState
returns the state of object in
the cache
.
Either INSERT
or REMOVE
.
cache
.public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |