- java.lang.Object
-
- org.jooq.util.oracle.OracleDSL.DBMS_AQ
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OracleDSL.DBMS_AQ.DELIVERY_MODE
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.DELIVERY_MODE
and toDBMS_AQ.ENQUEUE_OPTIONS_T.DELIVERY_MODE
.static class
OracleDSL.DBMS_AQ.DEQUEUE_MODE
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.DEQUEUE_MODE
.static class
OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T
ARECORD
corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T
.static class
OracleDSL.DBMS_AQ.ENQUEUE_OPTIONS_T
ARECORD
corresponding toDBMS_AQ.ENQUEUE_OPTIONS_T
.static class
OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T
ARECORD
corresponding toDBMS_AQ.MESSAGE_PROPERTIES_T
.static class
OracleDSL.DBMS_AQ.NAVIGATION
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.NAVIGATION
.static class
OracleDSL.DBMS_AQ.SEQUENCE_DEVIATION
A flag corresponding toDBMS_AQ.ENQUEUE_OPTIONS_T.SEQUENCE_DEVIATION
.static class
OracleDSL.DBMS_AQ.VISIBILITY
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.VISIBILITY
and toDBMS_AQ.ENQUEUE_OPTIONS_T.VISIBILITY
.static class
OracleDSL.DBMS_AQ.WAIT
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.WAIT
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R extends UDTRecord<R>>
Rdequeue(Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ.static <R extends UDTRecord<R>>
Rdequeue(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ.static <R extends UDTRecord<R>>
Rdequeue(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ asynchronously.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ asynchronously.static <R extends UDTRecord<R>>
CompletionStage<R>dequeueAsync(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ asynchronously.static <R extends UDTRecord<R>>
Iterable<R>dequeueIterable(Configuration configuration, Queue<R> queue)
Dequeue messages as an Oracle AQIterable
.static <R extends UDTRecord<R>>
Iterable<R>dequeueIterable(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue messages as an Oracle AQIterable
.static <R extends UDTRecord<R>>
Iterable<R>dequeueIterable(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue messages as an Oracle AQIterable
.static <R extends UDTRecord<R>>
Stream<R>dequeueStream(Configuration configuration, Queue<R> queue)
Dequeue messages as an Oracle AQStream
.static <R extends UDTRecord<R>>
Stream<R>dequeueStream(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue messages as an Oracle AQStream
.static <R extends UDTRecord<R>>
Stream<R>dequeueStream(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue messages as an Oracle AQStream
.static <R extends UDTRecord<R>>
voidenqueue(Configuration configuration, Queue<R> queue, R payload)
Enqueue a message in an Oracle AQ.static <R extends UDTRecord<R>>
voidenqueue(Configuration configuration, Queue<R> queue, R payload, OracleDSL.DBMS_AQ.ENQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Enqueue a message in an Oracle AQ.
-
-
-
Method Detail
-
enqueue
public static <R extends UDTRecord<R>> void enqueue(Configuration configuration, Queue<R> queue, R payload)
Enqueue a message in an Oracle AQ.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.payload
- The message payload.
-
enqueue
public static <R extends UDTRecord<R>> void enqueue(Configuration configuration, Queue<R> queue, R payload, OracleDSL.DBMS_AQ.ENQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Enqueue a message in an Oracle AQ.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.payload
- The message payload.options
- The enqueue options.properties
- The message properties.
-
dequeueIterable
public static <R extends UDTRecord<R>> Iterable<R> dequeueIterable(Configuration configuration, Queue<R> queue)
Dequeue messages as an Oracle AQIterable
.This returns an infinite
Iterable
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. TheIterator
is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.- Returns:
- The message payload.
-
dequeueIterable
public static <R extends UDTRecord<R>> Iterable<R> dequeueIterable(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue messages as an Oracle AQIterable
.This returns an infinite
Iterable
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. TheIterator
is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue, DEQUEUE_OPTIONS_T)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.- Returns:
- The message payload.
-
dequeueIterable
public static <R extends UDTRecord<R>> Iterable<R> dequeueIterable(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue messages as an Oracle AQIterable
.This returns an infinite
Iterable
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. TheIterator
is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue, DEQUEUE_OPTIONS_T, MESSAGE_PROPERTIES_T)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.properties
- The message properties OUT parameter. Resulting values will be stored here.- Returns:
- The message payload.
-
dequeueStream
public static <R extends UDTRecord<R>> Stream<R> dequeueStream(Configuration configuration, Queue<R> queue)
Dequeue messages as an Oracle AQStream
.This returns an infinite
Stream
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. The stream is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.- Returns:
- The message payload.
-
dequeueStream
public static <R extends UDTRecord<R>> Stream<R> dequeueStream(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue messages as an Oracle AQStream
.This returns an infinite
Stream
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. The stream is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue, DEQUEUE_OPTIONS_T)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.- Returns:
- The message payload.
-
dequeueStream
public static <R extends UDTRecord<R>> Stream<R> dequeueStream(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue messages as an Oracle AQStream
.This returns an infinite
Stream
of AQ messages. Messages are dequeued via individual calls toDBMS_AQ
, so no resources are bound by the stream. The stream is blocking on the AQ until new messages are delivered.Individual dequeue calls run in a
TransactionalCallable
and are committed immediately. Usedequeue(Configuration, Queue, DEQUEUE_OPTIONS_T, MESSAGE_PROPERTIES_T)
instead, if you want to commit / rollback individual messages.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.properties
- The message properties OUT parameter. Resulting values will be stored here.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ asynchronously.The dequeue call is completed asynchronously in a
CompletionStage
run in anExecutor
provided by theconfiguration
'sConfiguration.executorProvider()
The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ asynchronously.The dequeue call is completed asynchronously in a
CompletionStage
run in anExecutor
provided by theconfiguration
'sConfiguration.executorProvider()
The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ asynchronously.The dequeue call is completed asynchronously in a
CompletionStage
run in anExecutor
provided by theconfiguration
'sConfiguration.executorProvider()
The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.properties
- The message properties OUT parameter. Resulting values will be stored here.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.- Returns:
- The message payload.
-
dequeueAsync
public static <R extends UDTRecord<R>> CompletionStage<R> dequeueAsync(Executor executor, Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ, asynchronously in the given executor.The dequeue operation will happen in a (nested) transaction. In order to control transaction behaviour, supply a
Configuration
with appropriateTransactionProvider
.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.properties
- The message properties OUT parameter. Resulting values will be stored here.- Returns:
- The message payload.
-
dequeue
public static <R extends UDTRecord<R>> R dequeue(Configuration configuration, Queue<R> queue)
Dequeue a message in an Oracle AQ.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.- Returns:
- The message payload.
-
dequeue
public static <R extends UDTRecord<R>> R dequeue(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options)
Dequeue a message in an Oracle AQ.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.- Returns:
- The message payload.
-
dequeue
public static <R extends UDTRecord<R>> R dequeue(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options, OracleDSL.DBMS_AQ.MESSAGE_PROPERTIES_T properties)
Dequeue a message in an Oracle AQ.- Parameters:
configuration
- The configuration from which to get a connection.queue
- The queue reference.options
- The dequeue options.properties
- The message properties OUT parameter. Resulting values will be stored here.- Returns:
- The message payload.
-
-