org.bushe.swing.event
Class CleanupEvent

java.lang.Object
  extended by org.bushe.swing.event.CleanupEvent

public class CleanupEvent
extends Object

Published when the ThreadSafeEventService cleans up stale subscribers.


Nested Class Summary
static class CleanupEvent.Status
          The status of the cleanup.
 
Constructor Summary
CleanupEvent(CleanupEvent.Status status, int totalWeakRefsAndProxies, Integer numStaleSubscribersCleaned)
           
 
Method Summary
 Integer getNumStaleSubscribersCleaned()
          Null unless status is FINISHED_CLEANING.
 CleanupEvent.Status getStatus()
           
 int getTotalWeakRefsAndProxies()
          Total weak refs and ProxySubscribers subscribed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CleanupEvent

public CleanupEvent(CleanupEvent.Status status,
                    int totalWeakRefsAndProxies,
                    Integer numStaleSubscribersCleaned)
Method Detail

getStatus

public CleanupEvent.Status getStatus()

getTotalWeakRefsAndProxies

public int getTotalWeakRefsAndProxies()
Total weak refs and ProxySubscribers subscribed.


getNumStaleSubscribersCleaned

public Integer getNumStaleSubscribersCleaned()
Null unless status is FINISHED_CLEANING.

Returns:
the number of stale subscribers cleaned during the cleanup run.


Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.