Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.sms.lm
Interface Cache

All Known Implementing Classes:
MemoryCache

public interface Cache

This interface is used to define the methods a store for fragments.


Method Summary
 boolean addReceivedFragment(Message fragment, int referenceNumber, int numberOfFragments, int sequenceNumber)
          Add a message fragment to the cache.
 Message[] getReassembledMessage()
          This returns the next available complete set of message fragments in the cache.
 void purge()
          This purges the cache of any unwanted messages.
 int size()
          This returns the number of message fragments in the cache.
 

Method Detail

addReceivedFragment

boolean addReceivedFragment(Message fragment,
                            int referenceNumber,
                            int numberOfFragments,
                            int sequenceNumber)
Add a message fragment to the cache. This returns true if the added fragment results in a complete message being present in the cache.


getReassembledMessage

Message[] getReassembledMessage()
This returns the next available complete set of message fragments in the cache. Null is returned if nothing is available.


purge

void purge()
This purges the cache of any unwanted messages.


size

int size()
This returns the number of message fragments in the cache.


Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit