1 package org.gffs.cache;
16 class TimeoutList<KeyType, DataType>
extends CacheList<KeyType, DataType>
20 super(RoleBasedCacheNode.ROLE_TIMEOUT);
24 public void insert(RoleBasedCacheNode<KeyType, DataType> node)
33 RoleBasedCacheNode<KeyType, DataType> tmp;
34 for (tmp = _tail; tmp !=
null; tmp = tmp.getPrevious(_myRole)) {
35 if (tmp.getInvalidationDate().compareTo(node.getInvalidationDate()) <= 0) {
37 node.setPrevious(_myRole, tmp);
38 node.setNext(_myRole, tmp.getNext(_myRole));
39 tmp.setNext(_myRole, node);
40 if (node.getNext(_myRole) ==
null) {
44 node.getNext(_myRole).setPrevious(_myRole, node);
52 node.setNext(_myRole, _head);
53 _head.setPrevious(_myRole, node);