Example usage for com.google.common.collect EvictingQueue remove

List of usage examples for com.google.common.collect EvictingQueue remove

Introduction

In this page you can find the example usage for com.google.common.collect EvictingQueue remove.

Prototype

@Override
    public boolean remove(Object object) 

Source Link

Usage

From source file:com.boundlessgeo.geoserver.util.RecentObjectCache.java

public <T extends Info> boolean remove(Class<T> clazz, T obj) {
    if (obj == null || obj.getId() == null) {
        return false;
    }/*w w  w  . j  a v  a  2  s  .co m*/

    EvictingQueue<Ref> q = q(clazz);
    synchronized (q) {
        return q.remove(Ref.to(obj.getId()));
    }
}