SnmpTransactionpublic class GlobalTransaction extends Object implements SnmpTransaction
GlobalTransaction implements a SnmpTransaction
with rollback marker and an auto-commit option.| Constructor | Description |
|---|---|
GlobalTransaction(boolean autocommit) |
Creates a transaction with autocommit on or off.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isAutoCommit() |
|
boolean |
isRollbackOnly() |
|
void |
setRollbackOnly() |
|
String |
toString() |
public GlobalTransaction(boolean autocommit)
autocommit - true if autocommit is turned on, otherwise false.
With autocommit on, changes are immediately sent to the agent (command responder).
Otherwise, they are collected until an explicit commit is performed.public void setRollbackOnly()
setRollbackOnly in interface SnmpTransactionpublic boolean isRollbackOnly()
isRollbackOnly in interface SnmpTransactionpublic boolean isAutoCommit()
isAutoCommit in interface SnmpTransactionCopyright © 2020 SNMP4J.org. All rights reserved.