Package com.exonum.binding.core.runtime
Class NodeProxy
- java.lang.Object
-
- com.exonum.binding.core.proxy.AbstractNativeProxy
-
- com.exonum.binding.core.proxy.AbstractCloseableNativeProxy
-
- com.exonum.binding.core.runtime.NodeProxy
-
- All Implemented Interfaces:
CloseableNativeProxy,AutoCloseable
public final class NodeProxy extends AbstractCloseableNativeProxy
An Exonum node context. Allows to add transactions to Exonum network and get a snapshot of the database state.
-
-
Field Summary
-
Fields inherited from class com.exonum.binding.core.proxy.AbstractNativeProxy
nativeHandle
-
-
Constructor Summary
Constructors Constructor Description NodeProxy(long nativeHandle)Creates a proxy of a Node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddisposeInternal()Releases any resources owned by this proxy (e.g., the corresponding native object).com.exonum.binding.common.crypto.PublicKeygetPublicKey()com.exonum.binding.common.hash.HashCodesubmitTransaction(RawTransaction rawTransaction)<ResultT> ResultTwithSnapshot(Function<Snapshot,ResultT> snapshotFunction)-
Methods inherited from class com.exonum.binding.core.proxy.AbstractCloseableNativeProxy
close, getNativeHandle
-
Methods inherited from class com.exonum.binding.core.proxy.AbstractNativeProxy
isValidHandle
-
-
-
-
Method Detail
-
submitTransaction
public com.exonum.binding.common.hash.HashCode submitTransaction(RawTransaction rawTransaction)
-
getPublicKey
public com.exonum.binding.common.crypto.PublicKey getPublicKey()
-
disposeInternal
protected void disposeInternal()
Description copied from class:AbstractCloseableNativeProxyReleases any resources owned by this proxy (e.g., the corresponding native object).This method is only called once from
AbstractCloseableNativeProxy.close()for a valid proxy and shall not be called directly.- Specified by:
disposeInternalin classAbstractCloseableNativeProxy
-
-