public synchronized void clear() {
      endpointListeners = Collections.emptySet();
    }
Used by Endpoint only, when the reference count for this endpoint reaches 0
geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManagerImpl.java