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 Summary
Constructors Constructor Description DelayedCachedOutputStreamCleaner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclean()Run the clean upvoidforceClean()voidinitComplete()Invoked when theBushas been initialized.voidpostShutdown()Invoked after theBusis shutdown.voidpreShutdown()Invoked before theBusis shutdown.voidregister(Closeable closeable)Unregister the stream instance from the clean up (closed properly)voidsetBus(Bus bus)intsize()The exact or approximate (depending on the implementation) size of the cleaner queuevoidunregister(Closeable closeable)Register the stream instance for the clean up
-
-
-
Method Detail
-
setBus
public void setBus(Bus bus)
-
register
public void register(Closeable closeable)
Description copied from interface:CachedOutputStreamCleanerUnregister the stream instance from the clean up (closed properly)- Specified by:
registerin interfaceCachedOutputStreamCleaner
-
unregister
public void unregister(Closeable closeable)
Description copied from interface:CachedOutputStreamCleanerRegister the stream instance for the clean up- Specified by:
unregisterin interfaceCachedOutputStreamCleaner
-
size
public int size()
Description copied from interface:CachedOutputStreamCleanerThe exact or approximate (depending on the implementation) size of the cleaner queue- Specified by:
sizein interfaceCachedOutputStreamCleaner- Returns:
- exact or approximate (depending on the implementation) size of the cleaner queue
-
clean
public void clean()
Description copied from interface:CachedOutputStreamCleanerRun the clean up- Specified by:
cleanin interfaceCachedOutputStreamCleaner
-
initComplete
public void initComplete()
Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
initCompletein interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()
Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
postShutdownin interfaceBusLifeCycleListener
-
preShutdown
public void preShutdown()
Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
preShutdownin interfaceBusLifeCycleListener
-
forceClean
public void forceClean()
-
-