|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.db.TableSerialExpirationBacklog
public class TableSerialExpirationBacklog
Keeps a backlog of expiration sets.
Used in RMI-servers to reduce database roundtrips for clients
requesting the expiration info for their local caches.
| Constructor Summary | |
|---|---|
TableSerialExpirationBacklog()
Creates a backlog with a default size. |
|
TableSerialExpirationBacklog(int size)
Creates a backlog. |
|
| Method Summary | |
|---|---|
void |
addExpiration(long minSerial,
long maxSerial,
long[] idSer)
Adds an expiration set to the backlog. |
long[] |
getExpiration(long minSerial,
long maxSerial)
Gets the expiration backlog for a given range of tableserials. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableSerialExpirationBacklog(int size)
size - the size of the backlogpublic TableSerialExpirationBacklog()
| Method Detail |
|---|
public void addExpiration(long minSerial,
long maxSerial,
long[] idSer)
minSerial - the lower serial bound of the query (minSerial < tableSerial)maxSerial - the upper serial bound of the query (tableSerial <= maxSerial)idSer - the expiration info as pairs of id/tableserial.
public long[] getExpiration(long minSerial,
long maxSerial)
minSerial - the lower serial bound of the query (minSerial < tableSerial)maxSerial - the upper serial bound of the query (tableSerial <= maxSerial)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||