V
- the value typepublic class Scalar<V> extends PgxManagedObject
Modifier and Type | Method and Description |
---|---|
PgxFuture<java.lang.Void> |
destroyAsync()
Requests destruction of this object.
|
V |
get()
Blocking version of
getAsync() . |
PgxFuture<V> |
getAsync() |
int |
getDimension() |
PgxGraph |
getGraph()
Gets the graph the scalar is bound to.
|
java.lang.String |
getName() |
PropertyType |
getType()
Gets the type of this Scalar.
|
void |
set(V value)
Blocking version of
setAsync(Object) . |
PgxFuture<java.lang.Void> |
setAsync(V value)
Sets the scalar value.
|
java.lang.String |
toString() |
equals, hashCode
close, destroy
public PgxFuture<java.lang.Void> destroyAsync()
Destroyable
destroyAsync
in class Destroyable
public V get() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will
be nested.public int getDimension()
public PgxGraph getGraph()
public java.lang.String getName()
getName
in class PgxManagedObject
public PropertyType getType()
public void set(V value) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
setAsync(Object)
. Calls setAsync(Object)
and waits for the returned
PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will
be nested.public PgxFuture<java.lang.Void> setAsync(V value)
value
- the value to be assignedpublic java.lang.String toString()
toString
in class java.lang.Object