Yuta HIGUCHI | 9e6223d | 2014-08-26 00:01:32 -0700 | [diff] [blame] | 1 | package net.onrc.onos.core.topology; |
| 2 | |
| 3 | // TODO Not sure if we need this at all |
| 4 | /** |
| 5 | * MutableInternalTopology, which this instance can be updated to new view. |
| 6 | * <p> |
| 7 | * Requires read-lock to access any information on this topology view. |
| 8 | * <p> |
| 9 | * Note: This is still read-only view of the topology. |
| 10 | */ |
| 11 | public interface MutableInternalTopology extends BaseInternalTopology { |
| 12 | |
| 13 | /** |
| 14 | * Acquire a read lock on the entire topology. The topology will not |
| 15 | * change while readers have the lock. Must be released using |
| 16 | * {@link #releaseReadLock()}. This method will block until a read lock is |
| 17 | * available. |
| 18 | */ |
| 19 | public void acquireReadLock(); |
| 20 | |
| 21 | /** |
| 22 | * Release the read lock on the topology. |
| 23 | */ |
| 24 | public void releaseReadLock(); |
| 25 | } |