Class AtomicWriteTransaction
- java.lang.Object
-
- org.locationtech.geomesa.index.geotools.AtomicWriteTransaction
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.geotools.api.data.Transaction
public class AtomicWriteTransaction extends Object implements org.geotools.api.data.Transaction
Transaction object that enforces atomic writes - this ensures that a feature is not modified between when it's read and when it's updated. Does not support normal transaction operations, such as commit or rollback, and instead operates like auto-commit.
-
-
Field Summary
Fields Modifier and Type Field Description static AtomicWriteTransaction
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthorization(String authID)
void
close()
void
commit()
Set<String>
getAuthorizations()
Object
getProperty(Object key)
org.geotools.api.data.Transaction.State
getState(Object key)
void
putProperty(Object key, Object value)
void
putState(Object key, org.geotools.api.data.Transaction.State state)
void
removeState(Object key)
void
rollback()
String
toString()
-
-
-
Field Detail
-
INSTANCE
public static final AtomicWriteTransaction INSTANCE
-
-
Method Detail
-
putState
public void putState(Object key, org.geotools.api.data.Transaction.State state)
- Specified by:
putState
in interfaceorg.geotools.api.data.Transaction
-
getState
public org.geotools.api.data.Transaction.State getState(Object key)
- Specified by:
getState
in interfaceorg.geotools.api.data.Transaction
-
removeState
public void removeState(Object key)
- Specified by:
removeState
in interfaceorg.geotools.api.data.Transaction
-
putProperty
public void putProperty(Object key, Object value)
- Specified by:
putProperty
in interfaceorg.geotools.api.data.Transaction
-
getProperty
public Object getProperty(Object key)
- Specified by:
getProperty
in interfaceorg.geotools.api.data.Transaction
-
addAuthorization
public void addAuthorization(String authID)
- Specified by:
addAuthorization
in interfaceorg.geotools.api.data.Transaction
-
getAuthorizations
public Set<String> getAuthorizations()
- Specified by:
getAuthorizations
in interfaceorg.geotools.api.data.Transaction
-
commit
public void commit() throws IOException
- Specified by:
commit
in interfaceorg.geotools.api.data.Transaction
- Throws:
IOException
-
rollback
public void rollback()
- Specified by:
rollback
in interfaceorg.geotools.api.data.Transaction
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.geotools.api.data.Transaction
- Throws:
IOException
-
-