Package org.snmp4j.model.snmp.api
Class GlobalTransaction
java.lang.Object
org.snmp4j.model.snmp.api.GlobalTransaction
- All Implemented Interfaces:
SnmpTransaction
The
GlobalTransaction
implements a SnmpTransaction
with rollback marker and an auto-commit option.- Version:
- 1.0
- Author:
- Frank Fock
-
Constructor Summary
ConstructorsConstructorDescriptionGlobalTransaction
(boolean autocommit) Creates a transaction with autocommit on or off. -
Method Summary
-
Constructor Details
-
GlobalTransaction
public GlobalTransaction(boolean autocommit) Creates a transaction with autocommit on or off.- Parameters:
autocommit
-true
if autocommit is turned on, otherwisefalse
. With autocommit on, changes are immediately sent to the agent (command responder). Otherwise, they are collected until an explicit commit is performed.
-
-
Method Details
-
setRollbackOnly
public void setRollbackOnly()- Specified by:
setRollbackOnly
in interfaceSnmpTransaction
-
isRollbackOnly
public boolean isRollbackOnly()- Specified by:
isRollbackOnly
in interfaceSnmpTransaction
-
isAutoCommit
public boolean isAutoCommit()- Specified by:
isAutoCommit
in interfaceSnmpTransaction
-
toString
-