|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectThincSMsgFlag
ThincSMsgFlagCache
public final class ThincSMsgFlagCache
class for cache flag message. receives cache message and puts/gets the object to/from the cache by id from server.
ThincSMsgFlag
,
ThincSMsgFBRawUpdate
Field Summary | |
---|---|
static int |
ADD_MESSAGE_SIZE
|
private ThincClientCanvas |
canvas
|
static int |
DATA_MESSAGE_SIZE
|
private ThincMsgHandler |
handler
|
private java.nio.ByteBuffer |
hd
|
private int |
id
|
private int |
type
|
Constructor Summary | |
---|---|
ThincSMsgFlagCache(ThincMsgHandler h,
ThincClientCanvas c)
creates ThincSMsgFlagCache object. |
Method Summary | |
---|---|
void |
addCache(java.lang.Object target)
addCache() actually adds the object into cache. the key value and type such as id and type in this class should be already set by setCacheId() method. |
java.lang.Object |
getCache(int type)
getCache() gets the object from the cache. the key value(identifier) will be automatically received from this method. |
void |
setCacheId(int type)
setCacheId() receives the cache id from network and save it temporary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ADD_MESSAGE_SIZE
public static final int DATA_MESSAGE_SIZE
private ThincMsgHandler handler
private ThincClientCanvas canvas
private int id
private java.nio.ByteBuffer hd
private int type
Constructor Detail |
---|
public ThincSMsgFlagCache(ThincMsgHandler h, ThincClientCanvas c)
h
- ThincMsgHandler
to handle the messagec
- ThincClientCanvas
to get the informationMethod Detail |
---|
public void setCacheId(int type) throws ThincException
type
- cache type defined in ThincClientCanvas
ThincException
public void addCache(java.lang.Object target) throws ThincException
target
- the object to put
ThincException
public java.lang.Object getCache(int type) throws ThincException
type
- type of the cache
ThincException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |