Interface OSGiHandler
- All Known Implementing Classes:
OSGiMainHandler,OSGiResourceHandler,OSGiServletHandler
public interface OSGiHandler
Abstract OSGi
HttpHandler.
Defines locking model for processing and removal of handler.- Author:
- Hubert Iwaniuk
-
Method Summary
Modifier and TypeMethodDescriptionProcessing lock.Removal lock.
-
Method Details
-
getProcessingLock
ReentrantReadWriteLock.ReadLock getProcessingLock()Processing lock.ReentrantReadWriteLock.ReadLockcan be obtained by concurrent threads at the same time.- Returns:
- Processing lock.
-
getRemovalLock
ReentrantReadWriteLock.WriteLock getRemovalLock()Removal lock.ReentrantReadWriteLock.WriteLockcan be obtained only by one thread, blocksgetProcessingLock().- Returns:
- Removal lock.
- See Also:
-