Class ReactiveTransactionalGraphCommandsImpl<K>
- java.lang.Object
-
- io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
-
- io.quarkus.redis.runtime.datasource.ReactiveTransactionalGraphCommandsImpl<K>
-
- All Implemented Interfaces:
ReactiveTransactionalGraphCommands<K>,ReactiveTransactionalRedisCommands
public class ReactiveTransactionalGraphCommandsImpl<K> extends AbstractTransactionalCommands implements ReactiveTransactionalGraphCommands<K>
-
-
Field Summary
-
Fields inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
tx
-
-
Constructor Summary
Constructors Constructor Description ReactiveTransactionalGraphCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveGraphCommandsImpl<K> reactive, TransactionHolder tx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>graphDelete(K key)Execute the command GRAPH.DELETE.io.smallrye.mutiny.Uni<Void>graphExplain(K key, String query)Execute the command GRAPH.EXPLAIN.io.smallrye.mutiny.Uni<Void>graphList()Execute the command GRAPH.LIST.io.smallrye.mutiny.Uni<Void>graphQuery(K key, String query)Execute the command GRAPH.QUERY.io.smallrye.mutiny.Uni<Void>graphQuery(K key, String query, Duration timeout)Execute the command GRAPH.QUERY.-
Methods inherited from class io.quarkus.redis.runtime.datasource.AbstractTransactionalCommands
getDataSource, queuedOrDiscard
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveTransactionalRedisCommands
getDataSource
-
-
-
-
Constructor Detail
-
ReactiveTransactionalGraphCommandsImpl
public ReactiveTransactionalGraphCommandsImpl(ReactiveTransactionalRedisDataSource ds, ReactiveGraphCommandsImpl<K> reactive, TransactionHolder tx)
-
-
Method Detail
-
graphDelete
public io.smallrye.mutiny.Uni<Void> graphDelete(K key)
Description copied from interface:ReactiveTransactionalGraphCommandsExecute the command GRAPH.DELETE. Summary: Completely removes the graph and all of its entities. Group: graph- Specified by:
graphDeletein interfaceReactiveTransactionalGraphCommands<K>- Parameters:
key- the key, must not benull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphExplain
public io.smallrye.mutiny.Uni<Void> graphExplain(K key, String query)
Description copied from interface:ReactiveTransactionalGraphCommandsExecute the command GRAPH.EXPLAIN. Summary: Constructs a query execution plan but does not run it. Inspect this execution plan to better understand how your query will get executed. Group: graph- Specified by:
graphExplainin interfaceReactiveTransactionalGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphList
public io.smallrye.mutiny.Uni<Void> graphList()
Description copied from interface:ReactiveTransactionalGraphCommandsExecute the command GRAPH.LIST. Summary: Lists all graph keys in the keyspace. Group: graph- Specified by:
graphListin interfaceReactiveTransactionalGraphCommands<K>- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphQuery
public io.smallrye.mutiny.Uni<Void> graphQuery(K key, String query)
Description copied from interface:ReactiveTransactionalGraphCommandsExecute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Specified by:
graphQueryin interfaceReactiveTransactionalGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
graphQuery
public io.smallrye.mutiny.Uni<Void> graphQuery(K key, String query, Duration timeout)
Description copied from interface:ReactiveTransactionalGraphCommandsExecute the command GRAPH.QUERY. Summary: Executes the given query against a specified graph. Group: graph- Specified by:
graphQueryin interfaceReactiveTransactionalGraphCommands<K>- Parameters:
key- the key, must not benullquery- the query, must not benulltimeout- a timeout, must not benull- Returns:
- A
Uniemittingnullwhen the command has been enqueued successfully in the transaction, a failure otherwise. In the case of failure, the transaction is discarded.
-
-