- Enclosing class:
- OracleDSL
- Author:
- Lukas Eder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.DELIVERY_MODE
and toDBMS_AQ.ENQUEUE_OPTIONS_T.DELIVERY_MODE
.static enum
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.DEQUEUE_MODE
.static final class
ARECORD
corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T
.static final class
ARECORD
corresponding toDBMS_AQ.ENQUEUE_OPTIONS_T
.static final class
ARECORD
corresponding toDBMS_AQ.MESSAGE_PROPERTIES_T
.static enum
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.NAVIGATION
.static enum
A flag corresponding toDBMS_AQ.ENQUEUE_OPTIONS_T.SEQUENCE_DEVIATION
.static enum
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.VISIBILITY
and toDBMS_AQ.ENQUEUE_OPTIONS_T.VISIBILITY
.static enum
A flag corresponding toDBMS_AQ.DEQUEUE_OPTIONS_T.WAIT
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.dequeueIterable
(Configuration configuration, Queue<R> queue) Dequeue messages as an Oracle AQIterable
.dequeueIterable
(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options) Dequeue messages as an Oracle AQIterable
.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
.dequeueStream
(Configuration configuration, Queue<R> queue) Dequeue messages as an Oracle AQStream
.dequeueStream
(Configuration configuration, Queue<R> queue, OracleDSL.DBMS_AQ.DEQUEUE_OPTIONS_T options) Dequeue messages as an Oracle AQStream
.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 Details
-
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
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.
-