Package org.apache.cocoon.caching.validity

Examples of org.apache.cocoon.caching.validity.NamedEvent


 
  public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "foo" : key));
    }
View Full Code Here


            }
            if (eventName == null || "".equals(eventName)) {
                return null;
            }
            ((EventAwareCacheImpl)cache).processEvent(
                                                new NamedEvent(eventName));
        }
        this.manager.release(cache);
        return EMPTY_MAP;
    }
View Full Code Here

                }
                if (eventName == null || "".equals(eventName)) {
                    return null;
                }
                ((EventAwareCacheImpl)cache).processEvent(
                                                    new NamedEvent(eventName));
            }
        } finally {
            this.manager.release(cache);
        }
        return EMPTY_MAP;
View Full Code Here

     * @return  the cache event.
     */
    protected Event[] eventsFromMessage(Message message) {
        String name = message.toString();
        int pos = name.indexOf('|');
        return new Event[] { new NamedEvent(name.substring(pos + 1)) };
    }
View Full Code Here

     */
    public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "one" : key));
    }
View Full Code Here

    }

    private SourceValidity[] getCacheValidities() {
        if (this.cache instanceof EventAware) {
            // use event caching strategy, the associated event is the source uri
            return new SourceValidity[] { new EventValidity(new NamedEvent(this.source.getURI())) };
        }
        else {
            // we need to store both the cache expiration and the original source validity
            // the former is to determine whether to recheck the latter (see checkValidity)
            return new SourceValidity[] { new ExpiresValidity(getExpiration()), source.getValidity() };
View Full Code Here

     * @return  the cache event.
     */
    protected Event[] eventsFromMessage(Message message) {
        String name = message.toString();
        int pos = name.indexOf('|');
        return new Event[] { new NamedEvent(name.substring(pos + 1)) };
    }
View Full Code Here

                }
                if (eventName == null || "".equals(eventName)) {
                    return null;
                }
                ((EventAwareCacheImpl)cache).processEvent(
                                                    new NamedEvent(eventName));
            }
        } finally {
            this.manager.release(cache);
        }
        return EMPTY_MAP;
View Full Code Here

 
  public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "foo" : key));
    }
View Full Code Here

     */
    public SourceValidity getValidity() {
        final Request request = ObjectModelHelper.getRequest(this.objectModel);
        String key = request.getParameter("pageKey") ;
        return new EventValidity(
                   new NamedEvent(
                       (key==null||"".equals(key)) ? "one" : key));
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.caching.validity.NamedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.