Package org.apache.cxf.io
Class DelayedCachedOutputStreamCleaner
java.lang.Object
org.apache.cxf.io.DelayedCachedOutputStreamCleaner
- All Implemented Interfaces:
- BusLifeCycleListener,- CachedOutputStreamCleaner
public final class DelayedCachedOutputStreamCleaner
extends Object
implements CachedOutputStreamCleaner, BusLifeCycleListener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclean()Run the clean upvoidvoidInvoked when theBushas been initialized.voidInvoked after theBusis shutdown.voidInvoked before theBusis shutdown.voidUnregister the stream instance from the clean up (closed properly)voidintsize()The exact or approximate (depending on the implementation) size of the cleaner queuevoidunregister(Closeable closeable) Register the stream instance for the clean up
- 
Constructor Details- 
DelayedCachedOutputStreamCleanerpublic DelayedCachedOutputStreamCleaner()
 
- 
- 
Method Details- 
setBus
- 
registerDescription copied from interface:CachedOutputStreamCleanerUnregister the stream instance from the clean up (closed properly)- Specified by:
- registerin interface- CachedOutputStreamCleaner
 
- 
unregisterDescription copied from interface:CachedOutputStreamCleanerRegister the stream instance for the clean up- Specified by:
- unregisterin interface- CachedOutputStreamCleaner
 
- 
sizepublic int size()Description copied from interface:CachedOutputStreamCleanerThe exact or approximate (depending on the implementation) size of the cleaner queue- Specified by:
- sizein interface- CachedOutputStreamCleaner
- Returns:
- exact or approximate (depending on the implementation) size of the cleaner queue
 
- 
cleanpublic void clean()Description copied from interface:CachedOutputStreamCleanerRun the clean up- Specified by:
- cleanin interface- CachedOutputStreamCleaner
 
- 
initCompletepublic void initComplete()Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
- initCompletein interface- BusLifeCycleListener
 
- 
postShutdownpublic void postShutdown()Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
- postShutdownin interface- BusLifeCycleListener
 
- 
preShutdownpublic void preShutdown()Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
- preShutdownin interface- BusLifeCycleListener
 
- 
forceCleanpublic void forceClean()
 
-