org.snmp4j.smi
Interface DynamicValue

All Known Implementing Classes:
VariantVariable

public interface DynamicValue


Method Summary
 void blockValue()
          Freezes the value of this variable.
 void deblockValue()
          Deblocks the value of this variable.
 boolean isValueBlocked()
          Checks whether this
 

Method Detail

blockValue

void blockValue()
Freezes the value of this variable. To avoid errors during BER encoding or serialization of a variable, the caller may freeze the value until it calls deblockValue(). This method supports concurrency since deblockValue only resets the block if deblockValue has been called as often as blockValue.

By default, variable's do not support blocking values and thus the default implementation of this method is empty.

Since:
1.7.7

deblockValue

void deblockValue()
Deblocks the value of this variable. If deblockValue has been called as often as blockValue() or more, the this value can be modified externally and internally without potentially causing inconsistent states in other objects using this variable.

By default, variable's do not support blocking values and thus the default implementation of this method is empty.

Since:
1.7.7

isValueBlocked

boolean isValueBlocked()
Checks whether this

Returns:
boolean
Since:
1.7.7

Copyright 2003-2006 Frank Fock and Jochen Katz (SNMP4J.org)