org.tango.server.device
Class DeviceLock

java.lang.Object
  extended by org.tango.server.device.DeviceLock

public final class DeviceLock
extends java.lang.Object

Manage a tango device synchronization.

Author:
ABEILLE
See Also:
TransactionType

Constructor Summary
DeviceLock(TransactionType txType, java.lang.Class<?> deviceClass)
          Ctr
 
Method Summary
 void lockAttribute()
          obtain lock for attribute
 void lockCommand()
          Obtain lock for command
 void unlockAttribute()
          Release lock for attribute
 void unlockCommand()
          release lock for command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceLock

public DeviceLock(TransactionType txType,
                  java.lang.Class<?> deviceClass)
Ctr

Parameters:
txType - lock type
deviceClass - the class to lock
Method Detail

lockAttribute

public void lockAttribute()
obtain lock for attribute


unlockAttribute

public void unlockAttribute()
Release lock for attribute


lockCommand

public void lockCommand()
Obtain lock for command


unlockCommand

public void unlockCommand()
release lock for command



Copyright © 2012-2015. All Rights Reserved.