com.sun.grizzly.osgi.httpservice
Interface OSGiGrizzlyAdapter

All Known Implementing Classes:
OSGiMainAdapter, OSGiResourceAdapter, OSGiServletAdapter

public interface OSGiGrizzlyAdapter

Abstract OSGi GrizzlyAdapter.

Defines locking model for processing and removal of adapter.

Author:
Hubert Iwaniuk

Method Summary
 ReentrantReadWriteLock.ReadLock getProcessingLock()
          Processing lock.
 ReentrantReadWriteLock.WriteLock getRemovalLock()
          Removal lock.
 

Method Detail

getProcessingLock

ReentrantReadWriteLock.ReadLock getProcessingLock()
Processing lock.

ReentrantReadWriteLock.ReadLock can be obtained by concurrent threads at the same time.

Returns:
Processing lock.

getRemovalLock

ReentrantReadWriteLock.WriteLock getRemovalLock()
Removal lock.

ReentrantReadWriteLock.WriteLock can be obtained only by one thread, blocks getProcessingLock().

Returns:
Removal lock.
See Also:
getProcessingLock(), ReentrantReadWriteLock.WriteLock


Copyright © 2012 Oracle Corporation. All Rights Reserved.