- ACCESS_POINTS - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The ACCESS_POINTS key shows the specified access points in OMS driver schema.
- ACCOUNT_ID - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The ACCOUNT_ID key shows the specified account info in OMS driver schema.
- ack() - Method in interface io.openmessaging.consumer.MessageListener.Context
-
Acknowledges the specified and consumed message, which is related to this MessageContext.
- ack(String) - Method in interface io.openmessaging.consumer.PullConsumer
-
Acknowledges the specified and consumed message with the unique message receipt handle.
- ack(String, KeyValue) - Method in interface io.openmessaging.consumer.PullConsumer
-
Acknowledges the specified and consumed message with the specified attributes.
- addInterceptor(ConsumerInterceptor) - Method in interface io.openmessaging.consumer.PushConsumer
-
Adds a ConsumerInterceptor instance to this consumer.
- addInterceptor(ProducerInterceptor) - Method in interface io.openmessaging.producer.Producer
-
Adds a ProducerInterceptor to intercept send operations of producer.
- addListener(FutureListener<V>) - Method in interface io.openmessaging.Future
-
Adds the specified listener to this future.
- attachQueue(String) - Method in interface io.openmessaging.consumer.PullConsumer
-
Attaches the PullConsumer to a specified queue.
- attachQueue(String, KeyValue) - Method in interface io.openmessaging.consumer.PullConsumer
-
Attaches the PullConsumer to a specified queue with some specified attributes..
- attachQueue(String, MessageListener) - Method in interface io.openmessaging.consumer.PushConsumer
-
Attaches the PushConsumer to a specified queue, with a MessageListener.
- attachQueue(String, MessageListener, KeyValue) - Method in interface io.openmessaging.consumer.PushConsumer
-
Attaches the PushConsumer to a specified queue, with a MessageListener and some
specified attributes.
- attributes() - Method in interface io.openmessaging.consumer.MessageListener.Context
-
Returns the attributes of this MessageContext instance.
- attributes() - Method in interface io.openmessaging.consumer.PullConsumer
-
Returns the attributes of this PullConsumer instance.
- attributes() - Method in interface io.openmessaging.consumer.PushConsumer
-
Returns the attributes of this PushConsumer instance.
- attributes() - Method in interface io.openmessaging.consumer.StreamingConsumer
-
Returns the attributes of this StreamingConsumer instance.
- attributes() - Method in interface io.openmessaging.consumer.StreamingIterator
-
Returns the attributes of this StreamingIterator instance.
- attributes() - Method in interface io.openmessaging.MessagingAccessPoint
-
Returns the attributes of this MessagingAccessPoint instance.
- attributes() - Method in interface io.openmessaging.producer.Producer
-
Returns the attributes of this Producer instance.
- cancel(boolean) - Method in interface io.openmessaging.Promise
-
Attempts to cancel execution of this task.
- check(Message, LocalTransactionExecutor.CheckContext) - Method in interface io.openmessaging.producer.LocalTransactionExecutor
-
Checks the status of the local transaction branch.
- close() - Method in interface io.openmessaging.producer.BatchMessageSender
-
Close this sender.
- commit() - Method in interface io.openmessaging.producer.BatchMessageSender
-
Commits all the uncommitted messages in this sender.
- commit() - Method in interface io.openmessaging.producer.LocalTransactionExecutor.CheckContext
-
Commits a transaction.
- commit() - Method in interface io.openmessaging.producer.LocalTransactionExecutor.ExecutionContext
-
Commits a transaction.
- CONSUMER_ID - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The CONSUMER_ID key represents the the unique consumer id of a consumer instance.
- ConsumerInterceptor - Interface in io.openmessaging.interceptor
-
A ConsumerInterceptor is used to intercept consume operations of push consumer.
- containsKey(String) - Method in interface io.openmessaging.KeyValue
-
Tests if the specified String is a key in this KeyValue.
- createBatchMessageSender() - Method in interface io.openmessaging.producer.Producer
-
Creates a BatchMessageSender to send message in batch manner.
- createBytesMessage(String, byte[]) - Method in interface io.openmessaging.MessageFactory
-
Creates a BytesMessage object.
- createNamespace(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Creates a Namespace resource with some preset attributes.
- createProducer() - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new Producer for the specified MessagingAccessPoint.
- createProducer(KeyValue) - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new Producer for the specified MessagingAccessPoint
with some preset attributes.
- createPullConsumer() - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new PullConsumer for the specified MessagingAccessPoint.
- createPullConsumer(KeyValue) - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new PullConsumer for the specified MessagingAccessPoint with some preset attributes.
- createPushConsumer() - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new PushConsumer for the specified MessagingAccessPoint.
- createPushConsumer(KeyValue) - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new PushConsumer for the specified MessagingAccessPoint with some preset attributes.
- createQueue(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Creates a Queue resource in the configured namespace with some preset attributes.
- createRouting(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Creates a Routing resource in the configured namespace with some preset attributes.
- createStreamingConsumer() - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new StreamingConsumer for the specified MessagingAccessPoint.
- createStreamingConsumer(KeyValue) - Method in interface io.openmessaging.MessagingAccessPoint
-
Creates a new StreamingConsumer for the specified MessagingAccessPoint with some preset
attributes.
- get() - Method in interface io.openmessaging.Future
-
Waits if necessary for the computation to complete, and then
retrieves its result.
- get(long) - Method in interface io.openmessaging.Future
-
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
- getBody(Class<T>) - Method in interface io.openmessaging.Message
-
Get message body
- getDouble(String) - Method in interface io.openmessaging.KeyValue
-
Searches for the double property with the specified key in this KeyValue object.
- getDouble(String, double) - Method in interface io.openmessaging.KeyValue
-
Searches for the double property with the specified key in this KeyValue object.
- getErrorCode() - Method in exception io.openmessaging.exception.OMSException
-
Returns the error code of this OMSException object.
- getErrorCode() - Method in exception io.openmessaging.exception.OMSRuntimeException
-
Returns the error code of this OMSRuntimeException object.
- getInt(String) - Method in interface io.openmessaging.KeyValue
-
Searches for the int property with the specified key in this KeyValue object.
- getInt(String, int) - Method in interface io.openmessaging.KeyValue
-
Searches for the int property with the specified key in this KeyValue object.
- getLong(String) - Method in interface io.openmessaging.KeyValue
-
Searches for the long property with the specified key in this KeyValue object.
- getLong(String, long) - Method in interface io.openmessaging.KeyValue
-
Searches for the long property with the specified key in this KeyValue object.
- getMessagingAccessPoint(String) - Static method in class io.openmessaging.OMS
-
Returns a MessagingAccessPoint instance from the specified OMS driver url.
- getMessagingAccessPoint(String, KeyValue) - Static method in class io.openmessaging.OMS
-
Returns a MessagingAccessPoint instance from the specified OMS driver url
with some preset attributes, which will be passed to MessagingAccessPoint's implementation
class as a unique constructor parameter.
- getNamespaceAttributes(String) - Method in interface io.openmessaging.ResourceManager
-
Gets the attributes of the specific namespace.
- getQueueAttributes(String) - Method in interface io.openmessaging.ResourceManager
-
Gets the attributes of the specified queue.
- getRoutingAttributes(String) - Method in interface io.openmessaging.ResourceManager
-
Gets the attributes of the specified routing.
- getString(String) - Method in interface io.openmessaging.KeyValue
-
Searches for the String property with the specified key in this KeyValue object.
- getString(String, String) - Method in interface io.openmessaging.KeyValue
-
Searches for the String property with the specified key in this KeyValue object.
- getThrowable() - Method in interface io.openmessaging.Future
-
Returns the cause of the failed future
- OMS - Class in io.openmessaging
-
The oms class provides some static methods to create a MessagingAccessPoint
from the specified OMS driver url and some useful util methods.
- OMSBuiltinKeys - Interface in io.openmessaging
-
This is the centralized source for keys that are used for OMS standard attributes.
- OMSException - Exception in io.openmessaging.exception
-
This is the root class of all checked exceptions in the OMS API.
- OMSException(String, String) - Constructor for exception io.openmessaging.exception.OMSException
-
Constructs a OMSException with the specified detail message
and error code.
- OMSException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSException
-
Constructs a OMSException with the specified error code and cause.
- OMSException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSException
-
Constructs a OMSException with the specified detail message,
error code and cause.
- OMSMessageFormatException - Exception in io.openmessaging.exception
-
The OMSMessageFormatException must be thrown when the provided message
is not supported or the attributes are the wrong type.
- OMSMessageFormatException(String, String) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
-
- OMSMessageFormatException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
-
- OMSMessageFormatException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
-
- OMSNotSupportedException - Exception in io.openmessaging.exception
-
The OMSNotSupportedException must be thrown when the OMS vendor
can't provide some feature defined by the standard.
- OMSNotSupportedException(String, String) - Constructor for exception io.openmessaging.exception.OMSNotSupportedException
-
- OMSNotSupportedException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSNotSupportedException
-
- OMSNotSupportedException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSNotSupportedException
-
- OMSResourceNotExistException - Exception in io.openmessaging.exception
-
The OMSResourceNotExistException occurs if requested resource is not exist.
- OMSResourceNotExistException(String, String) - Constructor for exception io.openmessaging.exception.OMSResourceNotExistException
-
- OMSResourceNotExistException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSResourceNotExistException
-
- OMSResourceNotExistException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSResourceNotExistException
-
- OMSRuntimeException - Exception in io.openmessaging.exception
-
This is the root class of all unchecked exceptions in the OMS API.
- OMSRuntimeException(String, String) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
-
Constructs a OMSRuntimeException with the specified detail message
and error code.
- OMSRuntimeException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
-
Constructs a OMSRuntimeException with the specified error code and cause.
- OMSRuntimeException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
-
Constructs a OMSRuntimeException with the specified detail message,
error code and cause.
- OMSTimeOutException - Exception in io.openmessaging.exception
-
The OMSTimeOutException must be thrown when a blocking operation times out.
- OMSTimeOutException(String, String) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
-
- OMSTimeOutException(String, Throwable) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
-
- OMSTimeOutException(String, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
-
- onReceived(Message, MessageListener.Context) - Method in interface io.openmessaging.consumer.MessageListener
-
Callback method to receive incoming messages.
- OPERATION_TIMEOUT - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The OPERATION_TIMEOUT key defines the timeout of almost all the method calls in OMS.
- operationComplete(Future<V>) - Method in interface io.openmessaging.FutureListener
-
Invoked when the operation completes, be the associated
Promise successful or not.
- postReceive(Message, KeyValue) - Method in interface io.openmessaging.interceptor.ConsumerInterceptor
-
- postSend(Message, KeyValue) - Method in interface io.openmessaging.interceptor.ProducerInterceptor
-
Invoked immediately after the successful send invocation.
- postSend(Message, KeyValue, OMSException) - Method in interface io.openmessaging.interceptor.ProducerInterceptor
-
Invoked immediately after the failed send invocation.
- preReceive(Message, KeyValue) - Method in interface io.openmessaging.interceptor.ConsumerInterceptor
-
- preSend(Message, KeyValue) - Method in interface io.openmessaging.interceptor.ProducerInterceptor
-
Invoked before the message is actually sent to the network.
- previous() - Method in interface io.openmessaging.consumer.StreamingIterator
-
Returns the previous message in the iteration and moves the offset
position backwards.
- previousPosition() - Method in interface io.openmessaging.consumer.StreamingIterator
-
- PRIORITY - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The PRIORITY header field contains the priority level of a message,
a message with a higher priority value should be delivered preferentially.
- Producer - Interface in io.openmessaging.producer
-
A Producer is a simple object used to send messages on behalf
of a MessagingAccessPoint.
- PRODUCER_ID - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The PRODUCER_ID key represents the the unique producer id of a producer instance.
- ProducerInterceptor - Interface in io.openmessaging.interceptor
-
A ProducerInterceptor is used to intercept send operations of producer.
- Promise<V> - Interface in io.openmessaging
-
Special
Future which is writable.
- PullConsumer - Interface in io.openmessaging.consumer
-
A PullConsumer pulls messages from the specified queue,
and supports submit the consume result by acknowledgement.
- PushConsumer - Interface in io.openmessaging.consumer
-
A PushConsumer receives messages from multiple queues, these messages are pushed from
MOM server to PushConsumer client.
- put(String, int) - Method in interface io.openmessaging.KeyValue
-
Inserts or replaces int value for the specified key.
- put(String, long) - Method in interface io.openmessaging.KeyValue
-
Inserts or replaces long value for the specified key.
- put(String, double) - Method in interface io.openmessaging.KeyValue
-
Inserts or replaces double value for the specified key.
- put(String, String) - Method in interface io.openmessaging.KeyValue
-
Inserts or replaces String value for the specified key.
- putSysHeaders(String, int) - Method in interface io.openmessaging.Message
-
Puts a String-int KeyValue entry to the system headers of a Message.
- putSysHeaders(String, long) - Method in interface io.openmessaging.Message
-
Puts a String-long KeyValue entry to the system headers of a Message.
- putSysHeaders(String, double) - Method in interface io.openmessaging.Message
-
Puts a String-double KeyValue entry to the system headers of a Message.
- putSysHeaders(String, String) - Method in interface io.openmessaging.Message
-
Puts a String-String KeyValue entry to the system headers of a Message.
- putUserHeaders(String, int) - Method in interface io.openmessaging.Message
-
Puts a String-int KeyValue entry to the user headers of a Message.
- putUserHeaders(String, long) - Method in interface io.openmessaging.Message
-
Puts a String-long KeyValue entry to the user headers of a Message.
- putUserHeaders(String, double) - Method in interface io.openmessaging.Message
-
Puts a String-double KeyValue entry to the user headers of a Message.
- putUserHeaders(String, String) - Method in interface io.openmessaging.Message
-
Puts a String-String KeyValue entry to the user headers of a Message.
- RECEIPT_HANDLE - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The RECEIPT_HANDLE header field contains an identifier associated with the act of receiving a message.
- receive() - Method in interface io.openmessaging.consumer.PullConsumer
-
Receives the next message from the attached queues of this consumer.
- receive(KeyValue) - Method in interface io.openmessaging.consumer.PullConsumer
-
Receives the next message from the attached queues of this consumer, using the specified attributes.
- REDELIVERED_NUMBER - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The REDELIVERED_NUMBER header field contains a number, which represents
the number of message delivery.
- REDELIVERED_REASON - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The REDELIVERED_REASON header field contains the text description of the reason that causes
the last message delivery retry.
- REGION - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The REGION key shows the specified region in OMS driver schema.
- RELIABILITY - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The RELIABILITY header field contains the reliability level of a message, the vendor
should guarantee the reliability level for a message.
- removeInterceptor(ConsumerInterceptor) - Method in interface io.openmessaging.consumer.PushConsumer
-
Removes an interceptor from this consumer.
- removeInterceptor(ProducerInterceptor) - Method in interface io.openmessaging.producer.Producer
-
Removes a ProducerInterceptor
- resourceManager() - Method in interface io.openmessaging.MessagingAccessPoint
-
Gets a lightweight ResourceManager instance from the specified MessagingAccessPoint.
- ResourceManager - Interface in io.openmessaging
-
The ResourceManager is to provide a unified interface of resource management,
allowing developers to manage the namespace, queue and routing resources.
- resume() - Method in interface io.openmessaging.consumer.PushConsumer
-
Resumes the PushConsumer after a suspend.
- rollback() - Method in interface io.openmessaging.producer.BatchMessageSender
-
Discards all the uncommitted messages in this sender.
- rollback() - Method in interface io.openmessaging.producer.LocalTransactionExecutor.CheckContext
-
Rolls back a transaction.
- rollback() - Method in interface io.openmessaging.producer.LocalTransactionExecutor.ExecutionContext
-
Rolls back a transaction.
- ROUTING_DESTINATION - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The ROUTING_DESTINATION key shows the destination queue of a Routing instance.
- ROUTING_EXPRESSION - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The ROUTING_EXPRESSION key shows the expression of a Routing instance.
- ROUTING_SOURCE - Static variable in interface io.openmessaging.OMSBuiltinKeys
-
The ROUTING_SOURCE key shows the source queue of a Routing instance.
- SCHEDULE_EXPRESSION - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The SCHEDULE_EXPRESSION header field contains schedule expression of a message.
- SEARCH_KEYS - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The SEARCH_KEYS header field contains the multiple search keys of a message.
- seek(String, String) - Method in interface io.openmessaging.consumer.StreamingConsumer
-
Creates a StreamingIterator from the fixed position of the specified stream.
- seekToBeginning(String) - Method in interface io.openmessaging.consumer.StreamingConsumer
-
Creates a StreamingIterator from the begin position of the specified stream.
- seekToEnd(String) - Method in interface io.openmessaging.consumer.StreamingConsumer
-
Creates a StreamingIterator from the end position of the specified stream.
- send(Message) - Method in interface io.openmessaging.producer.BatchMessageSender
-
Submits a message to this sender
- send(Message) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination synchronously, the destination should be preset to
Message.sysHeaders(), other header fields as well.
- send(Message, KeyValue) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination synchronously, using the specified attributes, the destination
should be preset to
Message.sysHeaders(), other header fields as well.
- send(Message, LocalTransactionExecutor, KeyValue) - Method in interface io.openmessaging.producer.Producer
-
Sends a transactional message to the specified destination synchronously, using the specified attributes,
the destination should be preset to
Message.sysHeaders(), other header fields as well.
- sendAsync(Message) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination asynchronously, the destination should be preset to
Message.sysHeaders(), other header fields as well.
- sendAsync(Message, KeyValue) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination asynchronously, using the specified attributes, the destination
should be preset to
Message.sysHeaders(), other header fields as well.
- sendOneway(Message) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination in one way, the destination should be preset to
Message.BuiltinKeys, other header fields as well.
- sendOneway(Message, KeyValue) - Method in interface io.openmessaging.producer.Producer
-
Sends a message to the specified destination in one way, using the specified attributes, the destination
should be preset to Message.BuiltinKeys, other header fields as well.
- SendResult - Interface in io.openmessaging.producer
-
The result of sending a OMS message to server
with the message id and some attributes.
- ServiceLifecycle - Interface in io.openmessaging
-
The
ServiceLifecycle defines a lifecycle interface for a OMS related service endpoint, like
Producer,
PushConsumer, and so on.
- set(V) - Method in interface io.openmessaging.Promise
-
Set the value to this promise and mark it completed if set successfully.
- setBody(byte[]) - Method in interface io.openmessaging.BytesMessage
-
Sets the bytes message body.
- setFailure(Throwable) - Method in interface io.openmessaging.Promise
-
Marks this promise as a failure and notifies all listeners.
- setNamespaceAttributes(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Sets the attributes of the specific namespace, the old attributes will be replaced
by the provided attributes, only the provided key will be updated.
- setQueueAttributes(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Sets the attributes of the specified queue, the old attributes will be replaced
by the provided attributes, only the provided key will be updated.
- setRoutingAttributes(String, KeyValue) - Method in interface io.openmessaging.ResourceManager
-
Sets the attributes of the specified routing, the old attributes will be replaced
by the provided attributes, only the provided key will be updated.
- shutdown() - Method in interface io.openmessaging.ServiceLifecycle
-
Notify a service instance of the end of its life cycle.
- specVersion - Static variable in class io.openmessaging.OMS
-
The version format is X.Y.Z (Major.Minor.Patch), a pre-release version may be denoted by appending a hyphen and a
series of dot-separated identifiers immediately following the patch version, like X.Y.Z-alpha.
- START_TIME - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The START_TIME header field contains the startup timestamp that a message
can be delivered to consumer client.
- startup() - Method in interface io.openmessaging.ServiceLifecycle
-
Used for startup or initialization of a service endpoint.
- STOP_TIME - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The STOP_TIME header field contains the stop timestamp that a message
should be discarded after this timestamp, and no consumer can consume this message.
- STORE_HOST - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The STORE_HOST header field contains the store host info of a message in server side.
- STORE_TIMESTAMP - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The STORE_TIMESTAMP header field contains the store timestamp of a message in server side.
- STREAM_KEY - Static variable in interface io.openmessaging.Message.BuiltinKeys
-
The STREAM_KEY header field contains the stream key of a message.
- StreamingConsumer - Interface in io.openmessaging.consumer
-
A StreamingConsumer provides low level APIs to open multiple streams
from a specified queue and then retrieve messages from them through @{code StreamingIterator}.
- StreamingIterator - Interface in io.openmessaging.consumer
-
A StreamingIterator is provided by Stream and is used to
retrieve messages a specified stream like a read-only iterator.
- suspend() - Method in interface io.openmessaging.consumer.PushConsumer
-
Suspends the PushConsumer for later resumption.
- suspend(long) - Method in interface io.openmessaging.consumer.PushConsumer
-
Suspends the PushConsumer for later resumption.
- sysHeaders() - Method in interface io.openmessaging.Message
-
Returns all the system header fields of the Message object as a KeyValue.