Example usage for java.lang.ref WeakReference subclass-usage

List of usage examples for java.lang.ref WeakReference subclass-usage

Introduction

In this page you can find the example usage for java.lang.ref WeakReference subclass-usage.

Usage

From source file org.epochx.ref.MixedReference.java

/**
 * A MixedReference provides an optionally weak reference.
 */
public class MixedReference<T> extends WeakReference<T> {

    // The strong reference which will be null if only using weak.

From source file org.hippoecm.frontend.observation.JcrListener.java

class JcrListener extends WeakReference<EventListener>
        implements SynchronousEventListener, Comparable<JcrListener> {

    private final static Logger log = LoggerFactory.getLogger(JcrListener.class);

    private final static int MAX_EVENTS = Integer.getInteger("hippoecm.observation.maxevents", 10000);