|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.gsm.Cache
public class Cache
Long message cache is used to store fragments of long messages
that are received intermitently and reassemble them when the
all fragments are received.
Note that the fragments are kept in memory, and if the application
ceases to work then the message fragments will be lost.
Constructor Summary | |
---|---|
Cache(int expiry)
Construct a long message cache, specifying the expiry on the old message fragments. |
Method Summary | |
---|---|
BinaryMessage |
add(UDHMessage udhm)
Add a short (user data header) message to the cache, returning a full long Message if it is the last fragment of one. |
int |
countLongMessages()
Count the number of long messages cached. |
int |
countShortMessages()
Count the number of short messages cached. |
void |
purge()
Purge the table - done as messages are added also. |
void |
warnings(boolean on)
Public log expired messages. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cache(int expiry)
Method Detail |
---|
public void warnings(boolean on)
public int countShortMessages()
public int countLongMessages()
public BinaryMessage add(UDHMessage udhm) throws MessageException
MessageException
public void purge()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |