public static class SafeDestroyMgnlFilterWrapper.Switcher extends Object
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 and Description |
---|
Switcher() |
Modifier and Type | Method and Description |
---|---|
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.
|
public SafeDestroyMgnlFilterWrapper replaceFilter(SafeDestroyMgnlFilterWrapper newFilter)
public SafeDestroyMgnlFilterWrapper getFilterAndAcquireReadLock()
public SafeDestroyMgnlFilterWrapper getFilter()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.