|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.filters.SafeDestroyMgnlFilterWrapper.Switcher
public static class SafeDestroyMgnlFilterWrapper.Switcher
Construct for keeping a reference to a SafeDestroyMgnlFilterWrapper
and change it with the guarantee that
the returned previous reference will not get more read locks. It's then safe to destroy the returned reference.
Constructor Summary | |
---|---|
SafeDestroyMgnlFilterWrapper.Switcher()
|
Method Summary | |
---|---|
SafeDestroyMgnlFilterWrapper |
getFilter()
This method is provided for introspection only. |
SafeDestroyMgnlFilterWrapper |
getFilterAndAcquireReadLock()
Returns the current filter with a read lock held for the current thread. |
SafeDestroyMgnlFilterWrapper |
replaceFilter(SafeDestroyMgnlFilterWrapper newFilter)
Replaces the current filter with a new one and returns the previous filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SafeDestroyMgnlFilterWrapper.Switcher()
Method Detail |
---|
public SafeDestroyMgnlFilterWrapper replaceFilter(SafeDestroyMgnlFilterWrapper newFilter)
public SafeDestroyMgnlFilterWrapper getFilterAndAcquireReadLock()
public SafeDestroyMgnlFilterWrapper getFilter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |