diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 36716aa7..00000000 --- a/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -*.iml -*.class -*.jar -*dependency-reduced-pom.xml -.classpath -.project -.settings/ -target/ -devenv -*.log* -*.iml -.idea/ -*.versionsBackup -.DS_Store \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 633b3b73..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -dist: trusty - -notifications: - email: - recipients: - - openmessaging-members@googlegroups.com - on_success: change - on_failure: always - - -language: java - -jdk: - - oraclejdk8 - - oraclejdk9 - -script: mvn install -env: - global: - secure: hmPdcALAi6qE3TqJDRqdVCqZftd/i2hWLCyZbIAcRzu38nO94JZYKSZjfif1FvXTJYotFW25JClXNyvOMwMjjK3OPQINfYFZIp6LLeOmXGbUcktwQ8TIoKZ7IOvvWiZK054H7zNKapz+ke3OPN/5WTmMBezV0Ct4+bSf9udKVnQSMG2sJ8YJ/SeZkh7RTlqO+zTkh+yq8Hk0BdaWEOK8RtEoWgcUFGVfkycvjgvna+TbDp3K7vjmhYBBqACsNKxXPgIumStbCGW4vwjoVkCOGIJKWnuQEVHxiqBUH3pp81bxnt+RIcMuZMR2HnDSpHyAIulTJNHVo3VFAAiy9HMdP8Wfy/OVdjBSZ8xIOoQvFijo+yGNNn8v4hILcX4IpumQeyjpG134BOWVbMLhKH7qWR3Z8TGgijSd4lYYjabCJ564E93KvqK1u2CuS9u89N8J7AKFYMbknH1DP8E5tCD+VI3Gwut9YNofywj3Jln8uCOP4I//8p61j9A9QF7ORpY59Ru4RNzxYrFn2QSTltMfaBfVZchh5AqURUamcJd+1orZfz/v+6yH9FOW+MAG8EJdzHDsqzP1NXrt+4VtF6yqOnhBxnKVNEwFwjsinW9PFi9dXyzdEd33jKGL7UO8Old5XlBoA7idWIDH4GKKSlBRZhEKWMe4ZfxpQVg3VPz2Qqo= - -after_success: - - bash .utility/push-javadoc-to-gh-pages.sh diff --git a/.utility/push-javadoc-to-gh-pages.sh b/.utility/push-javadoc-to-gh-pages.sh deleted file mode 100644 index 186b53a9..00000000 --- a/.utility/push-javadoc-to-gh-pages.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -if [ "$TRAVIS_REPO_SLUG" == "openmessaging/openmessaging-java" ] && [ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then - - echo -e "Publishing javadoc...\n" - mvn javadoc:aggregate -pl :parent,:openmessaging-api - rm -rf $HOME/javadoc-latest - cp -R target/site/apidocs/ $HOME/javadoc-latest - - cd $HOME - git config --global user.email "travis@travis-ci.org" - git config --global user.name "travis-ci" - git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/openmessaging/openmessaging-java gh-pages > /dev/null - - cd gh-pages - git rm -rf . - cp -Rf $HOME/javadoc-latest/. . - git add -f . - git commit -m "Latest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages" - git push -fq origin gh-pages > /dev/null - - echo -e "Published Javadoc to gh-pages.\n" - -fi diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 0ade3d06..00000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2017 Alibaba - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md deleted file mode 100644 index d7a9539f..00000000 --- a/README.md +++ /dev/null @@ -1,13 +0,0 @@ -## ![logo](assets/images/logo-color.png) - -[![Build Status](https://travis-ci.org/openmessaging/openmessaging-java.svg?branch=master)](https://travis-ci.org/openmessaging/openmessaging-java) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.openmessaging/openmessaging-api/badge.svg)](http://search.maven.org/#search%7Cga%7C1%7Copenmessaging) [![Slack chat](https://img.shields.io/badge/chat-on%20slack-green.svg)](https://openmessaging.herokuapp.com/) [![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) - -### A vendor-neutral open standard for distributed messaging and streaming -OpenMessaging, which includes the establishment of industry guidelines and messaging, streaming specifications to provide a common framework for finance, e-commerce, IoT and big-data area. The design principles are the cloud-oriented, simplicity, flexibility, and language independent in distributed heterogeneous environments. Conformance to these specifications will make it possible to develop a heterogeneous messaging applications across all major platforms and operating systems. - - -## Doc -[API Doc](https://openmessaging.github.io/openmessaging-java/). - - -## ![Powered by Linux Foundation](http://openmessaging.cloud/images/linux-foundation-logo.png) diff --git a/allclasses-frame.html b/allclasses-frame.html new file mode 100644 index 00000000..243771d1 --- /dev/null +++ b/allclasses-frame.html @@ -0,0 +1,61 @@ + + + + + + +All Classes (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

All Classes

+
+ +
+ + diff --git a/allclasses-noframe.html b/allclasses-noframe.html new file mode 100644 index 00000000..fbbff997 --- /dev/null +++ b/allclasses-noframe.html @@ -0,0 +1,61 @@ + + + + + + +All Classes (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

All Classes

+
+ +
+ + diff --git a/assets/images/OpenMessaging-V0.2.0-alpha.png b/assets/images/OpenMessaging-V0.2.0-alpha.png deleted file mode 100644 index c82b0336..00000000 Binary files a/assets/images/OpenMessaging-V0.2.0-alpha.png and /dev/null differ diff --git a/assets/images/OpenMessaging-V0.3.0-alpha.png b/assets/images/OpenMessaging-V0.3.0-alpha.png deleted file mode 100644 index 368cf4f8..00000000 Binary files a/assets/images/OpenMessaging-V0.3.0-alpha.png and /dev/null differ diff --git a/assets/images/domain-design.png b/assets/images/domain-design.png deleted file mode 100644 index 19190e53..00000000 Binary files a/assets/images/domain-design.png and /dev/null differ diff --git a/assets/images/logo-color.png b/assets/images/logo-color.png deleted file mode 100644 index e4781821..00000000 Binary files a/assets/images/logo-color.png and /dev/null differ diff --git a/assets/images/logo.png b/assets/images/logo.png deleted file mode 100644 index 2d616984..00000000 Binary files a/assets/images/logo.png and /dev/null differ diff --git a/constant-values.html b/constant-values.html new file mode 100644 index 00000000..827ce20b --- /dev/null +++ b/constant-values.html @@ -0,0 +1,183 @@ + + + + + + +Constant Field Values (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Constant Field Values

+

Contents

+ +
+
+ + +

io.openmessaging.*

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/deprecated-list.html b/deprecated-list.html new file mode 100644 index 00000000..2bbe4853 --- /dev/null +++ b/deprecated-list.html @@ -0,0 +1,126 @@ + + + + + + +Deprecated List (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Deprecated API

+

Contents

+
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/help-doc.html b/help-doc.html new file mode 100644 index 00000000..936b6e75 --- /dev/null +++ b/help-doc.html @@ -0,0 +1,231 @@ + + + + + + +API Help (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

How This API Document Is Organized

+
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
+
+
+ +This help file applies to API documentation generated using the standard doclet.
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/index-all.html b/index-all.html new file mode 100644 index 00000000..a053e0ab --- /dev/null +++ b/index-all.html @@ -0,0 +1,1187 @@ + + + + + + +Index (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
A B C D E F G H I K L M N O P Q R S T U V  + + +

A

+
+
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.
+
+
ACCOUNT_KEY - Static variable in interface io.openmessaging.OMSBuiltinKeys
+
+
The ACCOUNT_KEY key shows the specified account key in OMS attribute.
+
+
ack() - Method in interface io.openmessaging.consumer.BatchMessageListener.Context
+
+
Acknowledges all messages in this batch, which is related to this MessageContext.
+
+
ack(MessageReceipt) - Method in interface io.openmessaging.consumer.Consumer
+
+
Acknowledges the specified and consumed message with the unique message receipt handle, in the scenario of using + manual commit.
+
+
ack() - Method in interface io.openmessaging.consumer.MessageListener.Context
+
+
Acknowledges the specified and consumed message, which is related to this MessageContext.
+
+
ack(MessageReceipt) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Acknowledges the specified and consumed message with the unique message receipt handle.
+
+
addInterceptor(ConsumerInterceptor) - Method in interface io.openmessaging.consumer.Consumer
+
+
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.
+
+
attributes() - Method in interface io.openmessaging.interceptor.Context
+
+
Returns the attributes of this Context instance.
+
+
attributes() - Method in interface io.openmessaging.MessagingAccessPoint
+
+
Returns the attributes of this MessagingAccessPoint instance.
+
+
+ + + +

B

+
+
BatchMessageListener - Interface in io.openmessaging.consumer
+
+
A message listener can implement this BatchMessageListener interface and register itself to a consumer + instance to asynchronously receive messages.
+
+
BatchMessageListener.Context - Interface in io.openmessaging.consumer
+
 
+
batchReceive(long) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Receive message in asynchronous way.
+
+
batchReceive(String, QueueMetaData, MessageReceipt, long) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Receive message in asynchronous way.
+
+
bindQueue(Collection<String>) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Bind the Consumer to a collection of queue in pull model, user can use PullConsumer.receive(long) + to get messages from a collection of queue.
+
+
bindQueue(Collection<String>, MessageListener) - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Bind the Consumer to a collection of queue, with a MessageListener.
+
+
bindQueue(Collection<String>, BatchMessageListener) - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Bind the Consumer to a collection of queue, with a BatchMessageListener.
+
+
+ + + +

C

+
+
cancel(boolean) - Method in interface io.openmessaging.Future
+
+
Attempts to cancel execution of this task.
+
+
cancel(boolean) - Method in interface io.openmessaging.Promise
+
+
Attempts to cancel execution of this task.
+
+
check(Message, TransactionStateCheckListener.TransactionalContext) - Method in interface io.openmessaging.producer.TransactionStateCheckListener
+
+
Checks the status of the local transaction branch.
+
+
Client - Interface in io.openmessaging
+
+
+ A Client interface contains all the common behaviors of producer and consumer.
+
+
commit() - Method in interface io.openmessaging.producer.TransactionalResult
+
+
Commits a transaction.
+
+
commit() - Method in interface io.openmessaging.producer.TransactionStateCheckListener.TransactionalContext
+
+
Commits a transaction.
+
+
Consumer - Interface in io.openmessaging.consumer
+
+
A PushConsumer receives messages from multiple queues, these messages are pushed from MOM server to Consumer client.
+
+
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.
+
+
Context - Interface in io.openmessaging.interceptor
+
+
A Context is used to transfer user's business data in the interceptor.
+
+
createMessage(String, byte[]) - Method in interface io.openmessaging.message.MessageFactory
+
+
Creates a Message object.
+
+
createNamespace(String) - Method in interface io.openmessaging.manager.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(TransactionStateCheckListener) - Method in interface io.openmessaging.MessagingAccessPoint
+
+
Creates a new transactional Producer for the specified MessagingAccessPoint, the producer is able + to respond to requests from the server to check the status of the transaction.
+
+
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.
+
+
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) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Creates a Queue resource in the configured namespace with some preset attributes.
+
+
currentState() - Method in interface io.openmessaging.ServiceLifecycle
+
+
Used for get service current state, for execution of some operations is dependent on the current service state.
+
+
+ + + +

D

+
+
deleteNamespace(String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Deletes an existing namespace.
+
+
deleteQueue(String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Deletes an existing queue resource.
+
+
DRIVER_IMPL - Static variable in interface io.openmessaging.OMSBuiltinKeys
+
+
The DRIVER_IMPL key represents the vendor implementation + entry of MessagingAccessPoint.
+
+
+ + + +

E

+
+
Extension - Interface in io.openmessaging.extension
+
+
+ This interface contains some methods are used for getting configurations related implementation.
+
+
ExtensionHeader - Interface in io.openmessaging.extension
+
+
+ The ExtensionHeader interface contains extended properties for common implementations in current messaging + and streaming field, such as the queue-based partitioning implementation, but the related properties in this + interface are not mandatory.
+
+
extensionHeader() - Method in interface io.openmessaging.message.Message
+
+
This interface is optional, Therefore, users need to check whether the interface is implemented and the + correctness of its implementation.
+
+
+ + + +

F

+
+
filter(String, String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
In order to enable consumers to get the message in the specified mode, the filter rule follows the sql standard + to filter out messages.
+
+
Future<V> - Interface in io.openmessaging
+
+
+ A Future represents the result of an asynchronous computation.
+
+
FutureListener<V> - Interface in io.openmessaging
+
+
A listener that is called back when a Promise is done.
+
+
+ + + +

G

+
+
generateException(OMSResponseStatus, String...) - Static method in enum io.openmessaging.OMSResponseStatus
+
 
+
generateException(OMSResponseStatus) - Static method in enum io.openmessaging.OMSResponseStatus
+
 
+
generateException(int, String) - Static method in enum io.openmessaging.OMSResponseStatus
+
 
+
generateReasonLocation(int, String) - Static method in enum io.openmessaging.OMSResponseStatus
+
 
+
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.
+
+
getBindQueues() - Method in interface io.openmessaging.consumer.Consumer
+
+
This method is used to find out the collection of queues bind to Consumer.
+
+
getBoolean(String) - Method in interface io.openmessaging.KeyValue
+
+
Searches for the boolean property with the specified key in this KeyValue object.
+
+
getBoolean(String, boolean) - Method in interface io.openmessaging.KeyValue
+
+
Searches for the boolean property with the specified key in this KeyValue object.
+
+
getBornHost() - Method in interface io.openmessaging.message.Header
+
+ +
+
getBornTimestamp() - Method in interface io.openmessaging.message.Header
+
+ +
+
getCompression() - Method in interface io.openmessaging.message.Header
+
+ +
+
getCorrelationId() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getData() - Method in interface io.openmessaging.message.Message
+
+
Get data from message body
+
+
getDelayTime() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getDeliveryCount() - Method in interface io.openmessaging.message.Header
+
+ +
+
getDestination() - Method in interface io.openmessaging.message.Header
+
+ +
+
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.
+
+
getDurability() - Method in interface io.openmessaging.message.Header
+
+ +
+
getErrorCode() - Method in exception io.openmessaging.exception.OMSRuntimeException
+
+
Returns the error code of this OMSRuntimeException object.
+
+
getExpireTime() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getExtension() - Method in interface io.openmessaging.Client
+
+
Get the extension method, and this interface is optional, Therefore, users need to check whether this interface + has been implemented by vendors.
+
+
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.
+
+
getMessageId() - Method in interface io.openmessaging.message.Header
+
+ +
+
getMessageKey() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getMessageReceipt() - Method in interface io.openmessaging.message.Message
+
+
Get the MessageReceipt of this Message, which will be used to acknowledge this message.
+
+
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.
+
+
getMore() - Method in enum io.openmessaging.OMSResponseStatus
+
 
+
getOffset() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
This method will return the OFFSET in the partition to which the message belongs to, but the premise is + that the implementation of the server side is dependent on the partition or a queue-like storage mechanism.
+
+
getPartiton() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
This method will return the partition of this message belongs.
+
+
getPriority() - Method in interface io.openmessaging.message.Header
+
+ +
+
getQueueMetaData(String) - Method in interface io.openmessaging.extension.Extension
+
+
This method used for getting the related queue's meta data, and this method is optional, vendors may not provide + this method based on their implementation.
+
+
getReasonPhrase() - Method in enum io.openmessaging.OMSResponseStatus
+
 
+
getShort(String) - Method in interface io.openmessaging.KeyValue
+
+
Searches for the short property with the specified key in this KeyValue object.
+
+
getShort(String, short) - Method in interface io.openmessaging.KeyValue
+
+
Searches for the short property with the specified key in this KeyValue object.
+
+
getStatusCode() - Method in enum io.openmessaging.OMSResponseStatus
+
 
+
getStoreHost() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getStoreTimestamp() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
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
+
+
getTraceId() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
getTransactionId() - Method in interface io.openmessaging.extension.ExtensionHeader
+
+ +
+
+ + + +

H

+
+
Header - Interface in io.openmessaging.message
+
+
The Header interface is the root interface of all OMS messages, and the most commonly used by OMS message + Message.
+
+
header() - Method in interface io.openmessaging.message.Message
+
+
Returns all the system header fields of the Message object as a KeyValue.
+
+
+ + + +

I

+
+
io.openmessaging - package io.openmessaging
+
 
+
io.openmessaging.annotation - package io.openmessaging.annotation
+
 
+
io.openmessaging.consumer - package io.openmessaging.consumer
+
 
+
io.openmessaging.exception - package io.openmessaging.exception
+
 
+
io.openmessaging.extension - package io.openmessaging.extension
+
 
+
io.openmessaging.interceptor - package io.openmessaging.interceptor
+
 
+
io.openmessaging.manager - package io.openmessaging.manager
+
 
+
io.openmessaging.message - package io.openmessaging.message
+
 
+
io.openmessaging.producer - package io.openmessaging.producer
+
 
+
isCancelled() - Method in interface io.openmessaging.Future
+
+
Returns true if this task was cancelled before it completed normally.
+
+
isDone() - Method in interface io.openmessaging.Future
+
+
Returns true if this task completed.
+
+
isSuspended() - Method in interface io.openmessaging.consumer.PushConsumer
+
+
This method is used to find out whether the Consumer in push model is suspended.
+
+
+ + + +

K

+
+
keySet() - Method in interface io.openmessaging.KeyValue
+
+
Returns a Set view of the keys contained in this KeyValue object.
+
+
KeyValue - Interface in io.openmessaging
+
+
The KeyValue class represents a persistent set of attributes, which supports method chaining.
+
+
+ + + +

L

+
+
listNamespaces() - Method in interface io.openmessaging.manager.ResourceManager
+
+
Gets the namespace list in the current MessagingAccessPoint.
+
+
listQueues(String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Gets the queue list in the specific namespace.
+
+
+ + + +

M

+
+
Message - Interface in io.openmessaging.message
+
+
The Message interface is the root interface of all OMS messages, and the most commonly used OMS message is + Message.
+
+
MessageFactory - Interface in io.openmessaging.message
+
+
A factory interface for creating Message objects.
+
+
messageFactory() - Method in interface io.openmessaging.MessagingAccessPoint
+
+
Gets a MessageFactory instance from the specified MessagingAccessPoint.
+
+
messageId() - Method in interface io.openmessaging.producer.SendResult
+
+
The unique message id related to the SendResult instance.
+
+
MessageListener - Interface in io.openmessaging.consumer
+
+
A message listener must implement this MessageListener interface and register itself to a consumer instance + to asynchronously receive messages.
+
+
MessageListener.Context - Interface in io.openmessaging.consumer
+
 
+
MessageReceipt - Interface in io.openmessaging.consumer
+
+
A MessageReceipt is a Message with a Receipt.
+
+
MessagingAccessPoint - Interface in io.openmessaging
+
+
An instance of MessagingAccessPoint may be obtained from OMS, which is capable of creating Producer, Consumer, ResourceManager, and other facility entities.
+
+
+ + + +

N

+
+
newKeyValue() - Static method in class io.openmessaging.OMS
+
+
Returns a default and internal KeyValue implementation instance.
+
+
+ + + +

O

+
+
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.
+
+
OMSDestinationException - Exception in io.openmessaging.exception
+
+
The OMSDestinationException must be thrown when the specified destination does not exist or the destination + is not readable or writable
+
+
OMSDestinationException(int, String) - Constructor for exception io.openmessaging.exception.OMSDestinationException
+
 
+
OMSDestinationException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSDestinationException
+
 
+
OMSDestinationException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSDestinationException
+
 
+
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(int, String) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
+
 
+
OMSMessageFormatException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
+
 
+
OMSMessageFormatException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSMessageFormatException
+
 
+
OMSResponseStatus - Enum in io.openmessaging
+
+
This class defined OpenMessaging response status code:
+
+
OMSRuntimeException - Exception in io.openmessaging.exception
+
+
This is the root class of all unchecked exceptions in the OMS API.
+
+
OMSRuntimeException(int, String) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
+
+
Constructs a OMSRuntimeException with the specified detail message + and error code.
+
+
OMSRuntimeException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
+
+
Constructs a OMSRuntimeException with the specified error code and cause.
+
+
OMSRuntimeException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSRuntimeException
+
+
Constructs a OMSRuntimeException with the specified detail message, + error code and cause.
+
+
OMSSecurityException - Exception in io.openmessaging.exception
+
+
The OMSSecurityException must be thrown when the client have no enough authority to operate an resource.
+
+
OMSSecurityException(int, String) - Constructor for exception io.openmessaging.exception.OMSSecurityException
+
 
+
OMSSecurityException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSSecurityException
+
 
+
OMSSecurityException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSSecurityException
+
 
+
OMSTimeOutException - Exception in io.openmessaging.exception
+
+
The OMSTimeOutException must be thrown when a blocking operation times out.
+
+
OMSTimeOutException(int, String) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
+
 
+
OMSTimeOutException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
+
 
+
OMSTimeOutException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSTimeOutException
+
 
+
OMSTransactionException - Exception in io.openmessaging.exception
+
+
The OMSTransactionException must be thrown when the client execute a transaction error.
+
+
OMSTransactionException(int, String) - Constructor for exception io.openmessaging.exception.OMSTransactionException
+
 
+
OMSTransactionException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSTransactionException
+
 
+
OMSTransactionException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSTransactionException
+
 
+
OMSUnsupportException - Exception in io.openmessaging.exception
+
+
The OMSUnsupportException must be thrown when the specified methods, headers or properties have not been + provided by vendors, these methods or headers are usually marked by Optional.
+
+
OMSUnsupportException(int, String) - Constructor for exception io.openmessaging.exception.OMSUnsupportException
+
 
+
OMSUnsupportException(int, Throwable) - Constructor for exception io.openmessaging.exception.OMSUnsupportException
+
 
+
OMSUnsupportException(int, String, Throwable) - Constructor for exception io.openmessaging.exception.OMSUnsupportException
+
 
+
onReceived(List<Message>, BatchMessageListener.Context) - Method in interface io.openmessaging.consumer.BatchMessageListener
+
+
Callback method to receive incoming messages.
+
+
onReceived(Message, MessageListener.Context) - Method in interface io.openmessaging.consumer.MessageListener
+
+
Callback method to receive incoming messages.
+
+
operationComplete(Future<V>) - Method in interface io.openmessaging.FutureListener
+
+
Invoked when the operation completes, be the associated Promise successful or not.
+
+
Optional - Annotation Type in io.openmessaging.annotation
+
+
+ A Optional is an annotation to mark some certain methods ,interfaces and etc.
+
+
+ + + +

P

+
+
partitionId() - Method in interface io.openmessaging.extension.QueueMetaData
+
+
Get partition identifier of target queue.
+
+
postReceive(Message, Context) - Method in interface io.openmessaging.interceptor.ConsumerInterceptor
+
+ +
+
postSend(Message, Context) - Method in interface io.openmessaging.interceptor.ProducerInterceptor
+
+
Invoked immediately after the successful send invocation.
+
+
prepare(Message) - Method in interface io.openmessaging.producer.Producer
+
+
Sends a transactional message to the specified destination synchronously, the destination should be preset to + Message.header(), other header fields as well.
+
+
preReceive(Message, Context) - Method in interface io.openmessaging.interceptor.ConsumerInterceptor
+
+ +
+
preSend(Message, Context) - Method in interface io.openmessaging.interceptor.ProducerInterceptor
+
+
Invoked before the message is actually sent to the network.
+
+
Producer - Interface in io.openmessaging.producer
+
+
A Producer is a simple object used to send messages on behalf of a MessagingAccessPoint.
+
+
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.
+
+
properties() - Method in interface io.openmessaging.message.Message
+
+
Returns all the customized user header fields of the Message object as a KeyValue.
+
+
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, boolean) - Method in interface io.openmessaging.KeyValue
+
+
Inserts or replaces boolean value for the specified key.
+
+
put(String, short) - Method in interface io.openmessaging.KeyValue
+
+
Inserts or replaces short value for the specified key.
+
+
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.
+
+
+ + + +

Q

+
+
QueueMetaData - Interface in io.openmessaging.extension
+
+
This interface QueueMetaData contains methods are used for getting configurations related some certain + implementation.
+
+
queueName() - Method in interface io.openmessaging.extension.QueueMetaData
+
+
Queue name
+
+
+ + + +

R

+
+
receive() - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Receives the next message from the attached queues of this consumer.
+
+
receive(long) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Receives the next message from the bind queues of this consumer in pull model.
+
+
receive(String, QueueMetaData, MessageReceipt, long) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Receives the next message from the which bind queue,partition and receiptId of this consumer in pull model.
+
+
REGION - Static variable in interface io.openmessaging.OMSBuiltinKeys
+
+
The REGION key shows the specified region in OMS driver schema.
+
+
removeInterceptor(ConsumerInterceptor) - Method in interface io.openmessaging.consumer.Consumer
+
+
Removes an interceptor from this consumer.
+
+
removeInterceptor(ProducerInterceptor) - Method in interface io.openmessaging.producer.Producer
+
+
Remove a ProducerInterceptor.
+
+
ResourceManager - Interface in io.openmessaging.manager
+
+
The ResourceManager is to provide a unified interface of resource management, allowing developers to manage + the namespace, queue and routing resources.
+
+
resourceManager() - Method in interface io.openmessaging.MessagingAccessPoint
+
+
Gets a lightweight ResourceManager instance from the specified MessagingAccessPoint.
+
+
resume() - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Resumes the Consumer in push model after a suspend.
+
+
rollback() - Method in interface io.openmessaging.producer.TransactionalResult
+
+
Rolls back a transaction.
+
+
rollback() - Method in interface io.openmessaging.producer.TransactionStateCheckListener.TransactionalContext
+
+
Rolls back a transaction.
+
+
routing(String, String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Routing from sourceQueue to targetQueue.
+
+
+ + + +

S

+
+
send(Message) - Method in interface io.openmessaging.producer.Producer
+
+
Sends a message to the specified destination synchronously, the destination should be preset to Message.header(), other header fields as well.
+
+
send(List<Message>) - Method in interface io.openmessaging.producer.Producer
+
+
+ Send batch messages to server.
+
+
sendAsync(Message) - Method in interface io.openmessaging.producer.Producer
+
+
Sends a message to the specified destination asynchronously, the destination should be preset to Message.header(), other header fields as well.
+
+
sendAsync(List<Message>) - Method in interface io.openmessaging.producer.Producer
+
+
Send messages to the specified destination asynchronously, the destination should be preset to Message.header(), other header fields as well.
+
+
sendOneway(Message) - Method in interface io.openmessaging.producer.Producer
+
+
+ There is no Promise related or RuntimeException thrown.
+
+
sendOneway(List<Message>) - Method in interface io.openmessaging.producer.Producer
+
+
+ There is no Promise related or RuntimeException thrown.
+
+
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, + Consumer, and so on.
+
+
ServiceLifeState - Enum in io.openmessaging
+
+
A collection of all service states.
+
+
set(V) - Method in interface io.openmessaging.Promise
+
+
Set the value to this promise and mark it completed if set successfully.
+
+
setBornHost(String) - Method in interface io.openmessaging.message.Header
+
+
The BORN_HOST header field contains the born host info of a message in client side.
+
+
setBornTimestamp(long) - Method in interface io.openmessaging.message.Header
+
+
The BORN_TIMESTAMP header field contains the time a message was handed off to a Producer to be + sent.
+
+
setCompression(short) - Method in interface io.openmessaging.message.Header
+
+
The field COMPRESSION in headers represents the message body compress algorithm.
+
+
setCorrelationId(String) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
A client can use the CORRELATION_ID field to link one message with another.
+
+
setData(byte[]) - Method in interface io.openmessaging.message.Message
+
+
Set data to message body
+
+
setDelayTime(long) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The DELAY_TIME header field contains a number that represents the delayed times in milliseconds.
+
+
setDeliveryCount(int) - Method in interface io.openmessaging.message.Header
+
+
The DELIVERY_COUNT header field contains a number, which represents the count of the message delivery.
+
+
setDestination(String) - Method in interface io.openmessaging.message.Header
+
+
The DESTINATION header field contains the destination to which the message is being sent.
+
+
setDurability(short) - Method in interface io.openmessaging.message.Header
+
+
The DURABILITY header field contains the persistent level of a message, the vendor should guarantee the + reliability level for a message.
+
+
setExpireTime(long) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The EXPIRE_TIME header field contains the expiration time, it represents a time-to-live value.
+
+
setFailure(Throwable) - Method in interface io.openmessaging.Promise
+
+
Marks this promise as a failure and notifies all listeners.
+
+
setMessageId(String) - Method in interface io.openmessaging.message.Header
+
+
The MESSAGE_ID header field contains a value that uniquely identify each message sent by a Producer.
+
+
setMessageKey(String) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The messagekey header field contains the custom key of a message.
+
+
setOffset(long) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
This method is only called by the server.
+
+
setPartition(int) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The PARTITION in extension header field contains the partition of target destination which the message + is being sent.
+
+
setPartitionId(int) - Method in interface io.openmessaging.extension.QueueMetaData
+
+
Set the specified partition.
+
+
setPriority(short) - Method in interface io.openmessaging.message.Header
+
+
The PRIORITY header field contains the priority level of a message, a message with a higher priority + value should be delivered preferentially.
+
+
setQueueName(String) - Method in interface io.openmessaging.extension.QueueMetaData
+
+
Set queueName to this Message Queue.
+
+
setStoreHost(String) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The STORE_HOST header field contains the store host info of a message in server side.
+
+
setStoreTimestamp(long) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The STORE_TIMESTAMP header field contains the store timestamp of a message in server side.
+
+
setTraceId(String) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
The TRACE_ID header field contains the trace ID of a message, which represents a global and unique + identification, to associate key events in the whole lifecycle of a message, like sent by who, stored at where, + and received by who.
+
+
setTransactionId(String) - Method in interface io.openmessaging.extension.ExtensionHeader
+
+
This field TRANSACTION_ID is used in transactional message, and it can be used to trace a transaction.
+
+
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() - Method in interface io.openmessaging.ServiceLifecycle
+
+
Used for startup or initialization of a service endpoint.
+
+
stop() - Method in interface io.openmessaging.ServiceLifecycle
+
+
Notify a service instance of the end of its life cycle.
+
+
success(MessageReceipt...) - Method in interface io.openmessaging.consumer.BatchMessageListener.Context
+
+
Acknowledges the specified and consumed message, which is related to this MessageContext.
+
+
suspend() - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Suspends the Consumer in push model for later resumption.
+
+
suspend(long) - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Suspends the Consumer in push model for later resumption.
+
+
switchNamespace(String) - Method in interface io.openmessaging.manager.ResourceManager
+
+
Switch to an existing namespace.
+
+
+ + + +

T

+
+
TransactionalResult - Interface in io.openmessaging.producer
+
+
The result of sending a OMS prepare message to server with the message id, this result can be used to commits or or + rolls back a prepare message.
+
+
transactionId() - Method in interface io.openmessaging.producer.TransactionalResult
+
+
The unique transactionId id related to the TransactionResult instance.
+
+
TransactionStateCheckListener - Interface in io.openmessaging.producer
+
+
Each executor will be associated with a transactional message, can be used to execute local transaction branch and + submit the transaction status(commit or rollback).
+
+
TransactionStateCheckListener.TransactionalContext - Interface in io.openmessaging.producer
+
 
+
+ + + +

U

+
+
unbindQueue(Collection<String>) - Method in interface io.openmessaging.consumer.PullConsumer
+
+
Unbind the Consumer from a collection of queues.
+
+
unbindQueue(Collection<String>) - Method in interface io.openmessaging.consumer.PushConsumer
+
+
Unbind the Consumer from a collection of queues.
+
+
unknown() - Method in interface io.openmessaging.producer.TransactionStateCheckListener.TransactionalContext
+
+
Unknown transaction status, may be this transaction still on going.
+
+
+ + + +

V

+
+
valueOf(String) - Static method in enum io.openmessaging.OMSResponseStatus
+
+
Returns the enum constant of this type with the specified name.
+
+
valueOf(String) - Static method in enum io.openmessaging.ServiceLifeState
+
+
Returns the enum constant of this type with the specified name.
+
+
values() - Static method in enum io.openmessaging.OMSResponseStatus
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
values() - Static method in enum io.openmessaging.ServiceLifeState
+
+
Returns an array containing the constants of this enum type, in +the order they are declared.
+
+
version() - Method in interface io.openmessaging.MessagingAccessPoint
+
+
Returns the target OMS specification version of the specified vendor implementation.
+
+
+A B C D E F G H I K L M N O P Q R S T U V 
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/index.html b/index.html new file mode 100644 index 00000000..eb0d5a4a --- /dev/null +++ b/index.html @@ -0,0 +1,76 @@ + + + + + + +openmessaging 1.0.0-beta-SNAPSHOT API + + + + + + + + + +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<h2>Frame Alert</h2> +<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> + + + diff --git a/io/openmessaging/Client.html b/io/openmessaging/Client.html new file mode 100644 index 00000000..480a69a6 --- /dev/null +++ b/io/openmessaging/Client.html @@ -0,0 +1,248 @@ + + + + + + +Client (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface Client

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/Future.html b/io/openmessaging/Future.html new file mode 100644 index 00000000..8eece5c0 --- /dev/null +++ b/io/openmessaging/Future.html @@ -0,0 +1,394 @@ + + + + + + +Future (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface Future<V>

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/FutureListener.html b/io/openmessaging/FutureListener.html new file mode 100644 index 00000000..03fdfcf0 --- /dev/null +++ b/io/openmessaging/FutureListener.html @@ -0,0 +1,239 @@ + + + + + + +FutureListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface FutureListener<V>

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/KeyValue.html b/io/openmessaging/KeyValue.html new file mode 100644 index 00000000..2bcdfe4c --- /dev/null +++ b/io/openmessaging/KeyValue.html @@ -0,0 +1,727 @@ + + + + + + +KeyValue (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface KeyValue

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/MessagingAccessPoint.html b/io/openmessaging/MessagingAccessPoint.html new file mode 100644 index 00000000..4b0da581 --- /dev/null +++ b/io/openmessaging/MessagingAccessPoint.html @@ -0,0 +1,472 @@ + + + + + + +MessagingAccessPoint (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface MessagingAccessPoint

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/OMS.html b/io/openmessaging/OMS.html new file mode 100644 index 00000000..db94f9ed --- /dev/null +++ b/io/openmessaging/OMS.html @@ -0,0 +1,369 @@ + + + + + + +OMS (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Class OMS

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/OMSBuiltinKeys.html b/io/openmessaging/OMSBuiltinKeys.html new file mode 100644 index 00000000..e17ad413 --- /dev/null +++ b/io/openmessaging/OMSBuiltinKeys.html @@ -0,0 +1,314 @@ + + + + + + +OMSBuiltinKeys (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface OMSBuiltinKeys

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/OMSResponseStatus.html b/io/openmessaging/OMSResponseStatus.html new file mode 100644 index 00000000..50c4fa6c --- /dev/null +++ b/io/openmessaging/OMSResponseStatus.html @@ -0,0 +1,795 @@ + + + + + + +OMSResponseStatus (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Enum OMSResponseStatus

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/Promise.html b/io/openmessaging/Promise.html new file mode 100644 index 00000000..2ddff19a --- /dev/null +++ b/io/openmessaging/Promise.html @@ -0,0 +1,312 @@ + + + + + + +Promise (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface Promise<V>

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/ServiceLifeState.html b/io/openmessaging/ServiceLifeState.html new file mode 100644 index 00000000..390648a1 --- /dev/null +++ b/io/openmessaging/ServiceLifeState.html @@ -0,0 +1,401 @@ + + + + + + +ServiceLifeState (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Enum ServiceLifeState

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/ServiceLifecycle.html b/io/openmessaging/ServiceLifecycle.html new file mode 100644 index 00000000..0f98ea60 --- /dev/null +++ b/io/openmessaging/ServiceLifecycle.html @@ -0,0 +1,293 @@ + + + + + + +ServiceLifecycle (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging
+

Interface ServiceLifecycle

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/annotation/Optional.html b/io/openmessaging/annotation/Optional.html new file mode 100644 index 00000000..4f1ba585 --- /dev/null +++ b/io/openmessaging/annotation/Optional.html @@ -0,0 +1,183 @@ + + + + + + +Optional (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.annotation
+

Annotation Type Optional

+
+
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/annotation/class-use/Optional.html b/io/openmessaging/annotation/class-use/Optional.html new file mode 100644 index 00000000..42dc598f --- /dev/null +++ b/io/openmessaging/annotation/class-use/Optional.html @@ -0,0 +1,271 @@ + + + + + + +Uses of Class io.openmessaging.annotation.Optional (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.annotation.Optional

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/annotation/package-frame.html b/io/openmessaging/annotation/package-frame.html new file mode 100644 index 00000000..b7101be4 --- /dev/null +++ b/io/openmessaging/annotation/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +io.openmessaging.annotation (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.annotation

+
+

Annotation Types

+ +
+ + diff --git a/io/openmessaging/annotation/package-summary.html b/io/openmessaging/annotation/package-summary.html new file mode 100644 index 00000000..7f4baf15 --- /dev/null +++ b/io/openmessaging/annotation/package-summary.html @@ -0,0 +1,147 @@ + + + + + + +io.openmessaging.annotation (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.annotation

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/annotation/package-tree.html b/io/openmessaging/annotation/package-tree.html new file mode 100644 index 00000000..10405f32 --- /dev/null +++ b/io/openmessaging/annotation/package-tree.html @@ -0,0 +1,135 @@ + + + + + + +io.openmessaging.annotation Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.annotation

+Package Hierarchies: + +
+
+

Annotation Type Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/annotation/package-use.html b/io/openmessaging/annotation/package-use.html new file mode 100644 index 00000000..f4ccaee6 --- /dev/null +++ b/io/openmessaging/annotation/package-use.html @@ -0,0 +1,228 @@ + + + + + + +Uses of Package io.openmessaging.annotation (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.annotation

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/Client.html b/io/openmessaging/class-use/Client.html new file mode 100644 index 00000000..15f4e6b7 --- /dev/null +++ b/io/openmessaging/class-use/Client.html @@ -0,0 +1,206 @@ + + + + + + +Uses of Interface io.openmessaging.Client (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.Client

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/Future.html b/io/openmessaging/class-use/Future.html new file mode 100644 index 00000000..3cb971fe --- /dev/null +++ b/io/openmessaging/class-use/Future.html @@ -0,0 +1,213 @@ + + + + + + +Uses of Interface io.openmessaging.Future (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.Future

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/FutureListener.html b/io/openmessaging/class-use/FutureListener.html new file mode 100644 index 00000000..3454da71 --- /dev/null +++ b/io/openmessaging/class-use/FutureListener.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Interface io.openmessaging.FutureListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.FutureListener

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/KeyValue.html b/io/openmessaging/class-use/KeyValue.html new file mode 100644 index 00000000..e2f12249 --- /dev/null +++ b/io/openmessaging/class-use/KeyValue.html @@ -0,0 +1,293 @@ + + + + + + +Uses of Interface io.openmessaging.KeyValue (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.KeyValue

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/MessagingAccessPoint.html b/io/openmessaging/class-use/MessagingAccessPoint.html new file mode 100644 index 00000000..f2130e7d --- /dev/null +++ b/io/openmessaging/class-use/MessagingAccessPoint.html @@ -0,0 +1,176 @@ + + + + + + +Uses of Interface io.openmessaging.MessagingAccessPoint (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.MessagingAccessPoint

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/OMS.html b/io/openmessaging/class-use/OMS.html new file mode 100644 index 00000000..23a07488 --- /dev/null +++ b/io/openmessaging/class-use/OMS.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.OMS (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.OMS

+
+
No usage of io.openmessaging.OMS
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/OMSBuiltinKeys.html b/io/openmessaging/class-use/OMSBuiltinKeys.html new file mode 100644 index 00000000..6e2c3b26 --- /dev/null +++ b/io/openmessaging/class-use/OMSBuiltinKeys.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Interface io.openmessaging.OMSBuiltinKeys (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.OMSBuiltinKeys

+
+
No usage of io.openmessaging.OMSBuiltinKeys
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/OMSResponseStatus.html b/io/openmessaging/class-use/OMSResponseStatus.html new file mode 100644 index 00000000..de5f11fb --- /dev/null +++ b/io/openmessaging/class-use/OMSResponseStatus.html @@ -0,0 +1,193 @@ + + + + + + +Uses of Class io.openmessaging.OMSResponseStatus (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.OMSResponseStatus

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/Promise.html b/io/openmessaging/class-use/Promise.html new file mode 100644 index 00000000..c0a27c89 --- /dev/null +++ b/io/openmessaging/class-use/Promise.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Interface io.openmessaging.Promise (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.Promise

+
+
No usage of io.openmessaging.Promise
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/ServiceLifeState.html b/io/openmessaging/class-use/ServiceLifeState.html new file mode 100644 index 00000000..82a99588 --- /dev/null +++ b/io/openmessaging/class-use/ServiceLifeState.html @@ -0,0 +1,181 @@ + + + + + + +Uses of Class io.openmessaging.ServiceLifeState (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.ServiceLifeState

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/class-use/ServiceLifecycle.html b/io/openmessaging/class-use/ServiceLifecycle.html new file mode 100644 index 00000000..bf486a6f --- /dev/null +++ b/io/openmessaging/class-use/ServiceLifecycle.html @@ -0,0 +1,206 @@ + + + + + + +Uses of Interface io.openmessaging.ServiceLifecycle (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.ServiceLifecycle

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/BatchMessageListener.Context.html b/io/openmessaging/consumer/BatchMessageListener.Context.html new file mode 100644 index 00000000..42b2c129 --- /dev/null +++ b/io/openmessaging/consumer/BatchMessageListener.Context.html @@ -0,0 +1,257 @@ + + + + + + +BatchMessageListener.Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface BatchMessageListener.Context

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/BatchMessageListener.html b/io/openmessaging/consumer/BatchMessageListener.html new file mode 100644 index 00000000..17bf12d3 --- /dev/null +++ b/io/openmessaging/consumer/BatchMessageListener.html @@ -0,0 +1,261 @@ + + + + + + +BatchMessageListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface BatchMessageListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/Consumer.html b/io/openmessaging/consumer/Consumer.html new file mode 100644 index 00000000..831c5cec --- /dev/null +++ b/io/openmessaging/consumer/Consumer.html @@ -0,0 +1,331 @@ + + + + + + +Consumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface Consumer

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/MessageListener.Context.html b/io/openmessaging/consumer/MessageListener.Context.html new file mode 100644 index 00000000..7b5ac246 --- /dev/null +++ b/io/openmessaging/consumer/MessageListener.Context.html @@ -0,0 +1,236 @@ + + + + + + +MessageListener.Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface MessageListener.Context

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/MessageListener.html b/io/openmessaging/consumer/MessageListener.html new file mode 100644 index 00000000..66706383 --- /dev/null +++ b/io/openmessaging/consumer/MessageListener.html @@ -0,0 +1,262 @@ + + + + + + +MessageListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface MessageListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/MessageReceipt.html b/io/openmessaging/consumer/MessageReceipt.html new file mode 100644 index 00000000..aef013d3 --- /dev/null +++ b/io/openmessaging/consumer/MessageReceipt.html @@ -0,0 +1,176 @@ + + + + + + +MessageReceipt (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface MessageReceipt

+
+
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/PullConsumer.html b/io/openmessaging/consumer/PullConsumer.html new file mode 100644 index 00000000..30a01771 --- /dev/null +++ b/io/openmessaging/consumer/PullConsumer.html @@ -0,0 +1,488 @@ + + + + + + +PullConsumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface PullConsumer

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/PushConsumer.html b/io/openmessaging/consumer/PushConsumer.html new file mode 100644 index 00000000..1767d611 --- /dev/null +++ b/io/openmessaging/consumer/PushConsumer.html @@ -0,0 +1,435 @@ + + + + + + +PushConsumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.consumer
+

Interface PushConsumer

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/BatchMessageListener.Context.html b/io/openmessaging/consumer/class-use/BatchMessageListener.Context.html new file mode 100644 index 00000000..15581af1 --- /dev/null +++ b/io/openmessaging/consumer/class-use/BatchMessageListener.Context.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.BatchMessageListener.Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.BatchMessageListener.Context

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/BatchMessageListener.html b/io/openmessaging/consumer/class-use/BatchMessageListener.html new file mode 100644 index 00000000..e1b2f8cc --- /dev/null +++ b/io/openmessaging/consumer/class-use/BatchMessageListener.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.BatchMessageListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.BatchMessageListener

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/Consumer.html b/io/openmessaging/consumer/class-use/Consumer.html new file mode 100644 index 00000000..53e0dc93 --- /dev/null +++ b/io/openmessaging/consumer/class-use/Consumer.html @@ -0,0 +1,176 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.Consumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.Consumer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/MessageListener.Context.html b/io/openmessaging/consumer/class-use/MessageListener.Context.html new file mode 100644 index 00000000..5cfdb8a8 --- /dev/null +++ b/io/openmessaging/consumer/class-use/MessageListener.Context.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.MessageListener.Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.MessageListener.Context

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/MessageListener.html b/io/openmessaging/consumer/class-use/MessageListener.html new file mode 100644 index 00000000..b12a8599 --- /dev/null +++ b/io/openmessaging/consumer/class-use/MessageListener.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.MessageListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.MessageListener

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/MessageReceipt.html b/io/openmessaging/consumer/class-use/MessageReceipt.html new file mode 100644 index 00000000..f0903903 --- /dev/null +++ b/io/openmessaging/consumer/class-use/MessageReceipt.html @@ -0,0 +1,223 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.MessageReceipt (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.MessageReceipt

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/PullConsumer.html b/io/openmessaging/consumer/class-use/PullConsumer.html new file mode 100644 index 00000000..6afc0a15 --- /dev/null +++ b/io/openmessaging/consumer/class-use/PullConsumer.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.PullConsumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.PullConsumer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/class-use/PushConsumer.html b/io/openmessaging/consumer/class-use/PushConsumer.html new file mode 100644 index 00000000..bba26c23 --- /dev/null +++ b/io/openmessaging/consumer/class-use/PushConsumer.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Interface io.openmessaging.consumer.PushConsumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.consumer.PushConsumer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/package-frame.html b/io/openmessaging/consumer/package-frame.html new file mode 100644 index 00000000..bf28bb7b --- /dev/null +++ b/io/openmessaging/consumer/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +io.openmessaging.consumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.consumer

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/consumer/package-summary.html b/io/openmessaging/consumer/package-summary.html new file mode 100644 index 00000000..d2d46d9a --- /dev/null +++ b/io/openmessaging/consumer/package-summary.html @@ -0,0 +1,188 @@ + + + + + + +io.openmessaging.consumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.consumer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/package-tree.html b/io/openmessaging/consumer/package-tree.html new file mode 100644 index 00000000..9bb64b2b --- /dev/null +++ b/io/openmessaging/consumer/package-tree.html @@ -0,0 +1,163 @@ + + + + + + +io.openmessaging.consumer Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.consumer

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/consumer/package-use.html b/io/openmessaging/consumer/package-use.html new file mode 100644 index 00000000..b1d33472 --- /dev/null +++ b/io/openmessaging/consumer/package-use.html @@ -0,0 +1,233 @@ + + + + + + +Uses of Package io.openmessaging.consumer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.consumer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSDestinationException.html b/io/openmessaging/exception/OMSDestinationException.html new file mode 100644 index 00000000..651d1f2b --- /dev/null +++ b/io/openmessaging/exception/OMSDestinationException.html @@ -0,0 +1,331 @@ + + + + + + +OMSDestinationException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSDestinationException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSMessageFormatException.html b/io/openmessaging/exception/OMSMessageFormatException.html new file mode 100644 index 00000000..173dde82 --- /dev/null +++ b/io/openmessaging/exception/OMSMessageFormatException.html @@ -0,0 +1,331 @@ + + + + + + +OMSMessageFormatException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSMessageFormatException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSRuntimeException.html b/io/openmessaging/exception/OMSRuntimeException.html new file mode 100644 index 00000000..13a46373 --- /dev/null +++ b/io/openmessaging/exception/OMSRuntimeException.html @@ -0,0 +1,386 @@ + + + + + + +OMSRuntimeException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSRuntimeException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSSecurityException.html b/io/openmessaging/exception/OMSSecurityException.html new file mode 100644 index 00000000..e5358f60 --- /dev/null +++ b/io/openmessaging/exception/OMSSecurityException.html @@ -0,0 +1,330 @@ + + + + + + +OMSSecurityException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSSecurityException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSTimeOutException.html b/io/openmessaging/exception/OMSTimeOutException.html new file mode 100644 index 00000000..079a8932 --- /dev/null +++ b/io/openmessaging/exception/OMSTimeOutException.html @@ -0,0 +1,332 @@ + + + + + + +OMSTimeOutException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSTimeOutException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSTransactionException.html b/io/openmessaging/exception/OMSTransactionException.html new file mode 100644 index 00000000..55987976 --- /dev/null +++ b/io/openmessaging/exception/OMSTransactionException.html @@ -0,0 +1,330 @@ + + + + + + +OMSTransactionException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSTransactionException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/OMSUnsupportException.html b/io/openmessaging/exception/OMSUnsupportException.html new file mode 100644 index 00000000..c84f8654 --- /dev/null +++ b/io/openmessaging/exception/OMSUnsupportException.html @@ -0,0 +1,331 @@ + + + + + + +OMSUnsupportException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.exception
+

Class OMSUnsupportException

+
+
+ +
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSDestinationException.html b/io/openmessaging/exception/class-use/OMSDestinationException.html new file mode 100644 index 00000000..552b6a70 --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSDestinationException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSDestinationException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSDestinationException

+
+
No usage of io.openmessaging.exception.OMSDestinationException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSMessageFormatException.html b/io/openmessaging/exception/class-use/OMSMessageFormatException.html new file mode 100644 index 00000000..87620cd2 --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSMessageFormatException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSMessageFormatException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSMessageFormatException

+
+
No usage of io.openmessaging.exception.OMSMessageFormatException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSRuntimeException.html b/io/openmessaging/exception/class-use/OMSRuntimeException.html new file mode 100644 index 00000000..5aac763e --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSRuntimeException.html @@ -0,0 +1,233 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSRuntimeException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSRuntimeException

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSSecurityException.html b/io/openmessaging/exception/class-use/OMSSecurityException.html new file mode 100644 index 00000000..ae587f82 --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSSecurityException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSSecurityException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSSecurityException

+
+
No usage of io.openmessaging.exception.OMSSecurityException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSTimeOutException.html b/io/openmessaging/exception/class-use/OMSTimeOutException.html new file mode 100644 index 00000000..fb3dc7f2 --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSTimeOutException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSTimeOutException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSTimeOutException

+
+
No usage of io.openmessaging.exception.OMSTimeOutException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSTransactionException.html b/io/openmessaging/exception/class-use/OMSTransactionException.html new file mode 100644 index 00000000..c58af49d --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSTransactionException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSTransactionException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSTransactionException

+
+
No usage of io.openmessaging.exception.OMSTransactionException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/class-use/OMSUnsupportException.html b/io/openmessaging/exception/class-use/OMSUnsupportException.html new file mode 100644 index 00000000..4cf68193 --- /dev/null +++ b/io/openmessaging/exception/class-use/OMSUnsupportException.html @@ -0,0 +1,126 @@ + + + + + + +Uses of Class io.openmessaging.exception.OMSUnsupportException (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Class
io.openmessaging.exception.OMSUnsupportException

+
+
No usage of io.openmessaging.exception.OMSUnsupportException
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/package-frame.html b/io/openmessaging/exception/package-frame.html new file mode 100644 index 00000000..28efaeeb --- /dev/null +++ b/io/openmessaging/exception/package-frame.html @@ -0,0 +1,27 @@ + + + + + + +io.openmessaging.exception (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.exception

+
+

Exceptions

+ +
+ + diff --git a/io/openmessaging/exception/package-summary.html b/io/openmessaging/exception/package-summary.html new file mode 100644 index 00000000..a9524899 --- /dev/null +++ b/io/openmessaging/exception/package-summary.html @@ -0,0 +1,185 @@ + + + + + + +io.openmessaging.exception (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.exception

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/package-tree.html b/io/openmessaging/exception/package-tree.html new file mode 100644 index 00000000..808cac3d --- /dev/null +++ b/io/openmessaging/exception/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +io.openmessaging.exception Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.exception

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/exception/package-use.html b/io/openmessaging/exception/package-use.html new file mode 100644 index 00000000..6d75bbd0 --- /dev/null +++ b/io/openmessaging/exception/package-use.html @@ -0,0 +1,182 @@ + + + + + + +Uses of Package io.openmessaging.exception (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.exception

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/Extension.html b/io/openmessaging/extension/Extension.html new file mode 100644 index 00000000..8e7fc546 --- /dev/null +++ b/io/openmessaging/extension/Extension.html @@ -0,0 +1,255 @@ + + + + + + +Extension (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.extension
+

Interface Extension

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/ExtensionHeader.html b/io/openmessaging/extension/ExtensionHeader.html new file mode 100644 index 00000000..48b42f38 --- /dev/null +++ b/io/openmessaging/extension/ExtensionHeader.html @@ -0,0 +1,638 @@ + + + + + + +ExtensionHeader (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.extension
+

Interface ExtensionHeader

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/QueueMetaData.html b/io/openmessaging/extension/QueueMetaData.html new file mode 100644 index 00000000..dd51cad6 --- /dev/null +++ b/io/openmessaging/extension/QueueMetaData.html @@ -0,0 +1,307 @@ + + + + + + +QueueMetaData (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.extension
+

Interface QueueMetaData

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/class-use/Extension.html b/io/openmessaging/extension/class-use/Extension.html new file mode 100644 index 00000000..4abbfebe --- /dev/null +++ b/io/openmessaging/extension/class-use/Extension.html @@ -0,0 +1,247 @@ + + + + + + +Uses of Interface io.openmessaging.extension.Extension (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.extension.Extension

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/class-use/ExtensionHeader.html b/io/openmessaging/extension/class-use/ExtensionHeader.html new file mode 100644 index 00000000..a97455a1 --- /dev/null +++ b/io/openmessaging/extension/class-use/ExtensionHeader.html @@ -0,0 +1,250 @@ + + + + + + +Uses of Interface io.openmessaging.extension.ExtensionHeader (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.extension.ExtensionHeader

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/class-use/QueueMetaData.html b/io/openmessaging/extension/class-use/QueueMetaData.html new file mode 100644 index 00000000..5a027df8 --- /dev/null +++ b/io/openmessaging/extension/class-use/QueueMetaData.html @@ -0,0 +1,205 @@ + + + + + + +Uses of Interface io.openmessaging.extension.QueueMetaData (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.extension.QueueMetaData

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/package-frame.html b/io/openmessaging/extension/package-frame.html new file mode 100644 index 00000000..372b4ad1 --- /dev/null +++ b/io/openmessaging/extension/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +io.openmessaging.extension (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.extension

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/extension/package-summary.html b/io/openmessaging/extension/package-summary.html new file mode 100644 index 00000000..3f054c63 --- /dev/null +++ b/io/openmessaging/extension/package-summary.html @@ -0,0 +1,163 @@ + + + + + + +io.openmessaging.extension (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.extension

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/package-tree.html b/io/openmessaging/extension/package-tree.html new file mode 100644 index 00000000..d3b6f50a --- /dev/null +++ b/io/openmessaging/extension/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +io.openmessaging.extension Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.extension

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/extension/package-use.html b/io/openmessaging/extension/package-use.html new file mode 100644 index 00000000..12bb4b3d --- /dev/null +++ b/io/openmessaging/extension/package-use.html @@ -0,0 +1,266 @@ + + + + + + +Uses of Package io.openmessaging.extension (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.extension

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/ConsumerInterceptor.html b/io/openmessaging/interceptor/ConsumerInterceptor.html new file mode 100644 index 00000000..4a1ba8a1 --- /dev/null +++ b/io/openmessaging/interceptor/ConsumerInterceptor.html @@ -0,0 +1,263 @@ + + + + + + +ConsumerInterceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.interceptor
+

Interface ConsumerInterceptor

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/Context.html b/io/openmessaging/interceptor/Context.html new file mode 100644 index 00000000..d64da19c --- /dev/null +++ b/io/openmessaging/interceptor/Context.html @@ -0,0 +1,237 @@ + + + + + + +Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.interceptor
+

Interface Context

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/ProducerInterceptor.html b/io/openmessaging/interceptor/ProducerInterceptor.html new file mode 100644 index 00000000..9160e07a --- /dev/null +++ b/io/openmessaging/interceptor/ProducerInterceptor.html @@ -0,0 +1,267 @@ + + + + + + +ProducerInterceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.interceptor
+

Interface ProducerInterceptor

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/class-use/ConsumerInterceptor.html b/io/openmessaging/interceptor/class-use/ConsumerInterceptor.html new file mode 100644 index 00000000..3d30c7fc --- /dev/null +++ b/io/openmessaging/interceptor/class-use/ConsumerInterceptor.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Interface io.openmessaging.interceptor.ConsumerInterceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.interceptor.ConsumerInterceptor

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/class-use/Context.html b/io/openmessaging/interceptor/class-use/Context.html new file mode 100644 index 00000000..fb2b7695 --- /dev/null +++ b/io/openmessaging/interceptor/class-use/Context.html @@ -0,0 +1,190 @@ + + + + + + +Uses of Interface io.openmessaging.interceptor.Context (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.interceptor.Context

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/class-use/ProducerInterceptor.html b/io/openmessaging/interceptor/class-use/ProducerInterceptor.html new file mode 100644 index 00000000..d2835cd5 --- /dev/null +++ b/io/openmessaging/interceptor/class-use/ProducerInterceptor.html @@ -0,0 +1,174 @@ + + + + + + +Uses of Interface io.openmessaging.interceptor.ProducerInterceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.interceptor.ProducerInterceptor

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/package-frame.html b/io/openmessaging/interceptor/package-frame.html new file mode 100644 index 00000000..971a4ef8 --- /dev/null +++ b/io/openmessaging/interceptor/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +io.openmessaging.interceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.interceptor

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/interceptor/package-summary.html b/io/openmessaging/interceptor/package-summary.html new file mode 100644 index 00000000..a0a6bbf6 --- /dev/null +++ b/io/openmessaging/interceptor/package-summary.html @@ -0,0 +1,158 @@ + + + + + + +io.openmessaging.interceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.interceptor

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/package-tree.html b/io/openmessaging/interceptor/package-tree.html new file mode 100644 index 00000000..d9b69e01 --- /dev/null +++ b/io/openmessaging/interceptor/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +io.openmessaging.interceptor Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.interceptor

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/interceptor/package-use.html b/io/openmessaging/interceptor/package-use.html new file mode 100644 index 00000000..f704012d --- /dev/null +++ b/io/openmessaging/interceptor/package-use.html @@ -0,0 +1,203 @@ + + + + + + +Uses of Package io.openmessaging.interceptor (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.interceptor

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/manager/ResourceManager.html b/io/openmessaging/manager/ResourceManager.html new file mode 100644 index 00000000..81661d6d --- /dev/null +++ b/io/openmessaging/manager/ResourceManager.html @@ -0,0 +1,472 @@ + + + + + + +ResourceManager (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.manager
+

Interface ResourceManager

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/manager/class-use/ResourceManager.html b/io/openmessaging/manager/class-use/ResourceManager.html new file mode 100644 index 00000000..3d86c3cb --- /dev/null +++ b/io/openmessaging/manager/class-use/ResourceManager.html @@ -0,0 +1,168 @@ + + + + + + +Uses of Interface io.openmessaging.manager.ResourceManager (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.manager.ResourceManager

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/manager/package-frame.html b/io/openmessaging/manager/package-frame.html new file mode 100644 index 00000000..0c8dc1ac --- /dev/null +++ b/io/openmessaging/manager/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +io.openmessaging.manager (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.manager

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/manager/package-summary.html b/io/openmessaging/manager/package-summary.html new file mode 100644 index 00000000..16894229 --- /dev/null +++ b/io/openmessaging/manager/package-summary.html @@ -0,0 +1,147 @@ + + + + + + +io.openmessaging.manager (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.manager

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/manager/package-tree.html b/io/openmessaging/manager/package-tree.html new file mode 100644 index 00000000..14e226d5 --- /dev/null +++ b/io/openmessaging/manager/package-tree.html @@ -0,0 +1,135 @@ + + + + + + +io.openmessaging.manager Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.manager

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/manager/package-use.html b/io/openmessaging/manager/package-use.html new file mode 100644 index 00000000..5effd858 --- /dev/null +++ b/io/openmessaging/manager/package-use.html @@ -0,0 +1,162 @@ + + + + + + +Uses of Package io.openmessaging.manager (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.manager

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/Header.html b/io/openmessaging/message/Header.html new file mode 100644 index 00000000..382a89eb --- /dev/null +++ b/io/openmessaging/message/Header.html @@ -0,0 +1,566 @@ + + + + + + +Header (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.message
+

Interface Header

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/Message.html b/io/openmessaging/message/Message.html new file mode 100644 index 00000000..84ef26e1 --- /dev/null +++ b/io/openmessaging/message/Message.html @@ -0,0 +1,373 @@ + + + + + + +Message (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.message
+

Interface Message

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/MessageFactory.html b/io/openmessaging/message/MessageFactory.html new file mode 100644 index 00000000..39c8438c --- /dev/null +++ b/io/openmessaging/message/MessageFactory.html @@ -0,0 +1,251 @@ + + + + + + +MessageFactory (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.message
+

Interface MessageFactory

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/class-use/Header.html b/io/openmessaging/message/class-use/Header.html new file mode 100644 index 00000000..7f05c899 --- /dev/null +++ b/io/openmessaging/message/class-use/Header.html @@ -0,0 +1,219 @@ + + + + + + +Uses of Interface io.openmessaging.message.Header (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.message.Header

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/class-use/Message.html b/io/openmessaging/message/class-use/Message.html new file mode 100644 index 00000000..086085dc --- /dev/null +++ b/io/openmessaging/message/class-use/Message.html @@ -0,0 +1,390 @@ + + + + + + +Uses of Interface io.openmessaging.message.Message (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.message.Message

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/class-use/MessageFactory.html b/io/openmessaging/message/class-use/MessageFactory.html new file mode 100644 index 00000000..216adc97 --- /dev/null +++ b/io/openmessaging/message/class-use/MessageFactory.html @@ -0,0 +1,192 @@ + + + + + + +Uses of Interface io.openmessaging.message.MessageFactory (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.message.MessageFactory

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/package-frame.html b/io/openmessaging/message/package-frame.html new file mode 100644 index 00000000..039e8b76 --- /dev/null +++ b/io/openmessaging/message/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +io.openmessaging.message (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.message

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/message/package-summary.html b/io/openmessaging/message/package-summary.html new file mode 100644 index 00000000..4ba7add3 --- /dev/null +++ b/io/openmessaging/message/package-summary.html @@ -0,0 +1,160 @@ + + + + + + +io.openmessaging.message (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.message

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/package-tree.html b/io/openmessaging/message/package-tree.html new file mode 100644 index 00000000..63fe2b2c --- /dev/null +++ b/io/openmessaging/message/package-tree.html @@ -0,0 +1,137 @@ + + + + + + +io.openmessaging.message Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.message

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/message/package-use.html b/io/openmessaging/message/package-use.html new file mode 100644 index 00000000..ff084ecc --- /dev/null +++ b/io/openmessaging/message/package-use.html @@ -0,0 +1,260 @@ + + + + + + +Uses of Package io.openmessaging.message (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.message

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/package-frame.html b/io/openmessaging/package-frame.html new file mode 100644 index 00000000..8a2f6935 --- /dev/null +++ b/io/openmessaging/package-frame.html @@ -0,0 +1,37 @@ + + + + + + +io.openmessaging (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging

+
+

Interfaces

+ +

Classes

+ +

Enums

+ +
+ + diff --git a/io/openmessaging/package-summary.html b/io/openmessaging/package-summary.html new file mode 100644 index 00000000..3b981bdd --- /dev/null +++ b/io/openmessaging/package-summary.html @@ -0,0 +1,232 @@ + + + + + + +io.openmessaging (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/package-tree.html b/io/openmessaging/package-tree.html new file mode 100644 index 00000000..84fd45e2 --- /dev/null +++ b/io/openmessaging/package-tree.html @@ -0,0 +1,170 @@ + + + + + + +io.openmessaging Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/package-use.html b/io/openmessaging/package-use.html new file mode 100644 index 00000000..ed018b44 --- /dev/null +++ b/io/openmessaging/package-use.html @@ -0,0 +1,291 @@ + + + + + + +Uses of Package io.openmessaging (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/Producer.html b/io/openmessaging/producer/Producer.html new file mode 100644 index 00000000..a37c48e9 --- /dev/null +++ b/io/openmessaging/producer/Producer.html @@ -0,0 +1,487 @@ + + + + + + +Producer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.producer
+

Interface Producer

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/SendResult.html b/io/openmessaging/producer/SendResult.html new file mode 100644 index 00000000..8a489b65 --- /dev/null +++ b/io/openmessaging/producer/SendResult.html @@ -0,0 +1,241 @@ + + + + + + +SendResult (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.producer
+

Interface SendResult

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/TransactionStateCheckListener.TransactionalContext.html b/io/openmessaging/producer/TransactionStateCheckListener.TransactionalContext.html new file mode 100644 index 00000000..c99d723f --- /dev/null +++ b/io/openmessaging/producer/TransactionStateCheckListener.TransactionalContext.html @@ -0,0 +1,262 @@ + + + + + + +TransactionStateCheckListener.TransactionalContext (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.producer
+

Interface TransactionStateCheckListener.TransactionalContext

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/TransactionStateCheckListener.html b/io/openmessaging/producer/TransactionStateCheckListener.html new file mode 100644 index 00000000..74a7d6b7 --- /dev/null +++ b/io/openmessaging/producer/TransactionStateCheckListener.html @@ -0,0 +1,268 @@ + + + + + + +TransactionStateCheckListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.producer
+

Interface TransactionStateCheckListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/TransactionalResult.html b/io/openmessaging/producer/TransactionalResult.html new file mode 100644 index 00000000..f63c2665 --- /dev/null +++ b/io/openmessaging/producer/TransactionalResult.html @@ -0,0 +1,282 @@ + + + + + + +TransactionalResult (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + + +
+
io.openmessaging.producer
+

Interface TransactionalResult

+
+
+
+ +
+
+ +
+
+ +
+
+ + +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/class-use/Producer.html b/io/openmessaging/producer/class-use/Producer.html new file mode 100644 index 00000000..0aff0ce6 --- /dev/null +++ b/io/openmessaging/producer/class-use/Producer.html @@ -0,0 +1,175 @@ + + + + + + +Uses of Interface io.openmessaging.producer.Producer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.producer.Producer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/class-use/SendResult.html b/io/openmessaging/producer/class-use/SendResult.html new file mode 100644 index 00000000..aa2f2106 --- /dev/null +++ b/io/openmessaging/producer/class-use/SendResult.html @@ -0,0 +1,205 @@ + + + + + + +Uses of Interface io.openmessaging.producer.SendResult (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.producer.SendResult

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/class-use/TransactionStateCheckListener.TransactionalContext.html b/io/openmessaging/producer/class-use/TransactionStateCheckListener.TransactionalContext.html new file mode 100644 index 00000000..1a6300cd --- /dev/null +++ b/io/openmessaging/producer/class-use/TransactionStateCheckListener.TransactionalContext.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.producer.TransactionStateCheckListener.TransactionalContext (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.producer.TransactionStateCheckListener.TransactionalContext

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/class-use/TransactionStateCheckListener.html b/io/openmessaging/producer/class-use/TransactionStateCheckListener.html new file mode 100644 index 00000000..e39aee21 --- /dev/null +++ b/io/openmessaging/producer/class-use/TransactionStateCheckListener.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.producer.TransactionStateCheckListener (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.producer.TransactionStateCheckListener

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/class-use/TransactionalResult.html b/io/openmessaging/producer/class-use/TransactionalResult.html new file mode 100644 index 00000000..ee835346 --- /dev/null +++ b/io/openmessaging/producer/class-use/TransactionalResult.html @@ -0,0 +1,169 @@ + + + + + + +Uses of Interface io.openmessaging.producer.TransactionalResult (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Interface
io.openmessaging.producer.TransactionalResult

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/package-frame.html b/io/openmessaging/producer/package-frame.html new file mode 100644 index 00000000..d8e0f348 --- /dev/null +++ b/io/openmessaging/producer/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +io.openmessaging.producer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

io.openmessaging.producer

+
+

Interfaces

+ +
+ + diff --git a/io/openmessaging/producer/package-summary.html b/io/openmessaging/producer/package-summary.html new file mode 100644 index 00000000..19b44d82 --- /dev/null +++ b/io/openmessaging/producer/package-summary.html @@ -0,0 +1,170 @@ + + + + + + +io.openmessaging.producer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Package io.openmessaging.producer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/package-tree.html b/io/openmessaging/producer/package-tree.html new file mode 100644 index 00000000..e270e112 --- /dev/null +++ b/io/openmessaging/producer/package-tree.html @@ -0,0 +1,160 @@ + + + + + + +io.openmessaging.producer Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Hierarchy For Package io.openmessaging.producer

+Package Hierarchies: + +
+
+

Interface Hierarchy

+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/io/openmessaging/producer/package-use.html b/io/openmessaging/producer/package-use.html new file mode 100644 index 00000000..d39eb022 --- /dev/null +++ b/io/openmessaging/producer/package-use.html @@ -0,0 +1,197 @@ + + + + + + +Uses of Package io.openmessaging.producer (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + +
Skip navigation links
+ + + + +
+ + +
+

Uses of Package
io.openmessaging.producer

+
+
+ +
+ +
+ + +
Skip navigation links
+ + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/openmessaging-admin/pom.xml b/openmessaging-admin/pom.xml deleted file mode 100644 index debe8f13..00000000 --- a/openmessaging-admin/pom.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - io.openmessaging - parent - 1.0.0-beta-SNAPSHOT - - - 4.0.0 - jar - openmessaging-admin - openmessaging-admin ${project.version} - diff --git a/openmessaging-api-samples/pom.xml b/openmessaging-api-samples/pom.xml deleted file mode 100644 index d6bc37dc..00000000 --- a/openmessaging-api-samples/pom.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - io.openmessaging - parent - 1.0.0-beta-SNAPSHOT - - - 4.0.0 - jar - openmessaging-api-samples - 1.0.0-beta-SNAPSHOT - openmessaging-api-samples ${project.version} - - - - junit - junit - 4.13.1 - test - - - ${project.groupId} - openmessaging-api - 1.0.0-beta-SNAPSHOT - - - org.slf4j - slf4j-api - 1.7.5 - - - diff --git a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PullConsumerApp.java b/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PullConsumerApp.java deleted file mode 100644 index 7f9a2e85..00000000 --- a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PullConsumerApp.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.samples.consumer; - -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.consumer.PullConsumer; -import io.openmessaging.message.Message; -import java.util.Arrays; - -public class PullConsumerApp { - public static void main(String[] args) { - //Load and start the vendor implementation from a specific OMS driver URL. - final MessagingAccessPoint messagingAccessPoint = - OMS.getMessagingAccessPoint("oms:rocketmq://alice@rocketmq.apache.org/us-east"); - - //Start a PullConsumer to receive messages from the specific queue. - final PullConsumer consumer = messagingAccessPoint.createPullConsumer(); - - //Register a shutdown hook to close the opened endpoints. - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - consumer.stop(); - } - })); - - consumer.bindQueue(Arrays.asList("NS://HELLO_QUEUE")); - consumer.start(); - - Message message = consumer.receive(1000); - System.out.println("Received message: " + message); - //Acknowledge the consumed message - consumer.ack(message.getMessageReceipt()); - consumer.stop(); - - } -} diff --git a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PushConsumerApp.java b/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PushConsumerApp.java deleted file mode 100644 index 47ea14eb..00000000 --- a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/consumer/PushConsumerApp.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.samples.consumer; - -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.consumer.Consumer; -import io.openmessaging.consumer.MessageListener; -import io.openmessaging.consumer.PushConsumer; -import io.openmessaging.manager.ResourceManager; -import io.openmessaging.message.Message; -import java.util.Arrays; - -public class PushConsumerApp { - public static void main(String[] args) { - //Load and start the vendor implementation from a specific OMS driver URL. - final MessagingAccessPoint messagingAccessPoint = - OMS.getMessagingAccessPoint("oms:rocketmq://localhost:10911/us-east"); - - //Fetch a ResourceManager to create Queue resource. - ResourceManager resourceManager = messagingAccessPoint.resourceManager(); - resourceManager.createNamespace("NS://XXXX"); - final PushConsumer consumer = messagingAccessPoint.createPushConsumer(); - consumer.start(); - - //Register a shutdown hook to close the opened endpoints. - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - consumer.stop(); - } - })); - - //Consume messages from a simple queue. - String simpleQueue = "NS://HELLO_QUEUE"; - resourceManager.createQueue(simpleQueue); - //This queue doesn't has a source queue, so only the message delivered to the queue directly can - //be consumed by this consumer. - consumer.bindQueue(Arrays.asList(simpleQueue), new MessageListener() { - @Override - public void onReceived(Message message, Context context) { - System.out.println("Received one message: " + message); - context.ack(); - } - - }); - - consumer.unbindQueue(Arrays.asList(simpleQueue)); - - consumer.stop(); - } -} \ No newline at end of file diff --git a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/ProducerApp.java b/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/ProducerApp.java deleted file mode 100644 index 9084b8a8..00000000 --- a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/ProducerApp.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.samples.producer; - -import io.openmessaging.Future; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.interceptor.Context; -import io.openmessaging.interceptor.ProducerInterceptor; -import io.openmessaging.message.Message; -import io.openmessaging.producer.Producer; -import io.openmessaging.producer.SendResult; -import java.nio.charset.Charset; -import java.util.ArrayList; -import java.util.List; - -public class ProducerApp { - public static void main(String[] args) { - final MessagingAccessPoint messagingAccessPoint = - OMS.getMessagingAccessPoint("oms:rocketmq://alice@rocketmq.apache.org/us-east"); - - final Producer producer = messagingAccessPoint.createProducer(); - ProducerInterceptor interceptor = new ProducerInterceptor() { - @Override - public void preSend(Message message, Context attributes) { - System.out.println("PreSend message: " + message); - } - - @Override - public void postSend(Message message, Context attributes) { - System.out.println("PostSend message: " + message); - } - }; - producer.addInterceptor(interceptor); - producer.start(); - - //Register a shutdown hook to close the opened endpoints. - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - producer.stop(); - } - })); - - //Send a message to the specified destination synchronously. - Message message = producer.createMessage( - "NS://HELLO_QUEUE1", "HELLO_BODY".getBytes(Charset.forName("UTF-8"))); - message.header().setBornHost("127.0.0.1").setDurability((short) 0); - message.extensionHeader().setPartition(1); - SendResult sendResult = producer.send(message); - System.out.println("SendResult: " + sendResult); - - //Sends a message to the specified destination async. - Future sendResultFuture = producer.sendAsync(message); - sendResult = sendResultFuture.get(1000); - System.out.println("SendResult: " + sendResult); - - //Sends a message to the specified destination in one way mode. - producer.sendOneway(message); - - //Sends messages to the specified destination in batch mode. - List messages = new ArrayList(10); - for (int i = 0; i < 10; i++) { - Message msg = producer.createMessage("NS://HELLO_QUEUE", ("Hello" + i).getBytes()); - messages.add(msg); - } - - producer.send(messages); - producer.removeInterceptor(interceptor); - producer.stop(); - } -} diff --git a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/TransactionProducerApp.java b/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/TransactionProducerApp.java deleted file mode 100644 index bed57642..00000000 --- a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/producer/TransactionProducerApp.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.samples.producer; - -import io.openmessaging.message.Message; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.producer.Producer; -import io.openmessaging.producer.TransactionStateCheckListener; -import io.openmessaging.producer.TransactionalResult; -import java.nio.charset.Charset; - -public class TransactionProducerApp { - public static void main(String[] args) { - final MessagingAccessPoint messagingAccessPoint = - OMS.getMessagingAccessPoint("oms:rocketmq://alice@rocketmq.apache.org/us-east"); - - final Producer producer = messagingAccessPoint.createProducer(new TransactionStateCheckListener() { - @Override public void check(Message message, TransactionalContext context) { - - } - }); - producer.start(); - - //Register a shutdown hook to close the opened endpoints. - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - producer.stop(); - } - })); - - Message message = producer.createMessage( - "NS://HELLO_QUEUE", "HELLO_BODY".getBytes(Charset.forName("UTF-8"))); - - //Sends a transaction message to the specified destination synchronously. - TransactionalResult result = producer.prepare(message); - executeLocalTransaction(result); - result.commit(); - producer.stop(); - System.out.println("Send transaction message OK, message id is: " + result.messageId()); - } - - private static void executeLocalTransaction(TransactionalResult result) { - System.out.println("transactionId: " + result.transactionId()); - System.out.println("execute local transaction"); - } -} diff --git a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/routing/RoutingApp.java b/openmessaging-api-samples/src/main/java/io/openmessaging/samples/routing/RoutingApp.java deleted file mode 100644 index 298655cc..00000000 --- a/openmessaging-api-samples/src/main/java/io/openmessaging/samples/routing/RoutingApp.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.samples.routing; - -import io.openmessaging.consumer.PushConsumer; -import io.openmessaging.message.Message; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.consumer.Consumer; -import io.openmessaging.consumer.MessageListener; -import io.openmessaging.manager.ResourceManager; -import io.openmessaging.producer.Producer; -import java.util.Arrays; - -public class RoutingApp { - public static void main(String[] args) { - //Load and start the vendor implementation from a specific OMS driver URL. - final MessagingAccessPoint messagingAccessPoint = - OMS.getMessagingAccessPoint("oms:rocketmq://alice@rocketmq.apache.org/us-east"); - - String destinationQueue = "NS://DESTINATION_QUEUE"; - String sourceQueue = "NS://SOURCE_QUEUE"; - //Fetch a ResourceManager to create source Queue, destination Queue, and the Routing instance. - ResourceManager resourceManager = messagingAccessPoint.resourceManager(); - - //Create the destination queue. - resourceManager.createQueue(destinationQueue); - //Create the source queue. - resourceManager.createQueue(sourceQueue); - - resourceManager.routing(sourceQueue, destinationQueue); - resourceManager.filter(destinationQueue, "name = 'kaka'"); - - //Send messages to the source queue ahead of the routing - final Producer producer = messagingAccessPoint.createProducer(); - producer.start(); - - Message message = producer.createMessage(sourceQueue, "RED_COLOR".getBytes()); - message.properties().put("color", "green").put("shape", "round"); - - producer.send(message); - - //Consume messages from the queue behind the routing. - final PushConsumer consumer = messagingAccessPoint.createPushConsumer(); - consumer.start(); - - consumer.bindQueue(Arrays.asList(destinationQueue), new MessageListener() { - @Override - public void onReceived(Message message, Context context) { - //The message sent to the sourceQueue will be delivered to anotherConsumer by the routing rule - //In this case, the push consumer will only receive the message with red color. - System.out.println("Received a red message: " + message); - context.ack(); - } - - }); - - //Register a shutdown hook to close the opened endpoints. - Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { - @Override - public void run() { - producer.stop(); - consumer.stop(); - } - })); - - } -} diff --git a/openmessaging-api/README.md b/openmessaging-api/README.md deleted file mode 100644 index 999ed6ac..00000000 --- a/openmessaging-api/README.md +++ /dev/null @@ -1,14 +0,0 @@ -## Server Side -* Namespace -* Queue - * Stream -* Routing - * Expression - -## Client Side -* Producer -* PushConsumer -* PullConsumer -* StreamingConsumer -* Message - * BytesMessage diff --git a/openmessaging-api/pom.xml b/openmessaging-api/pom.xml deleted file mode 100644 index 6f969895..00000000 --- a/openmessaging-api/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - io.openmessaging - parent - 1.0.0-beta-SNAPSHOT - - - 4.0.0 - openmessaging-api - openmessaging-api ${project.version} - - - - - src/main/resources - true - - - - - - junit - junit - 4.13.1 - test - - - org.assertj - assertj-core - 1.7.1 - test - - - diff --git a/openmessaging-api/src/main/java/io/openmessaging/Client.java b/openmessaging-api/src/main/java/io/openmessaging/Client.java deleted file mode 100644 index ed20ebad..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/Client.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging; - -import io.openmessaging.extension.Extension; -import java.util.Optional; - -/** - *

- * A {@code Client} interface contains all the common behaviors of producer and consumer. which can be used to achieve - * some basic interaction with the server. - *

- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Client { - /** - * Get the extension method, and this interface is optional, Therefore, users need to check whether this interface - * has been implemented by vendors. - *

- * - * @return the implementation of {@link Extension} - */ - @io.openmessaging.annotation.Optional - Optional getExtension(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/Future.java b/openmessaging-api/src/main/java/io/openmessaging/Future.java deleted file mode 100644 index e0973549..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/Future.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -/** - *

- * A {@code Future} represents the result of an asynchronous computation. Methods are provided to check if the - * computation is complete, to wait for its completion, and to retrieve the result of the computation. The result can - * only be retrieved using method {@code get} when the computation has completed, blocking if necessary until it is - * ready. Additional methods are provided to determine if the task completed normally or was cancelled. - *

- *

- * The reason for adding this future is mainly to satisfy the old version of jdk, such as jdk 1.6. - *

- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Future { - /** - * Attempts to cancel execution of this task. This attempt will - * fail if the task has already completed, has already been cancelled, - * or could not be cancelled for some other reason. If successful, - * and this task has not started when {@code cancel} is called, - * this task should never run. If the task has already started, - * then the {@code mayInterruptIfRunning} parameter determines - * whether the thread executing this task should be interrupted in - * an attempt to stop the task. - * - *

After this method returns, subsequent calls to {@link #isDone} will - * always return {@code true}. Subsequent calls to {@link #isCancelled} - * will always return {@code true} if this method returned {@code true}. - * - * @param mayInterruptIfRunning {@code true} if the thread executing this - * task should be interrupted; otherwise, in-progress tasks are allowed - * to complete - * @return {@code false} if the task could not be cancelled, - * typically because it has already completed normally; - * {@code true} otherwise - */ - boolean cancel(boolean mayInterruptIfRunning); - - /** - * Returns {@code true} if this task was cancelled before it completed normally. - * - * @return {@code true} if this task was cancelled before it completed - */ - boolean isCancelled(); - - /** - * Returns {@code true} if this task completed. - *

- * Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method - * will return {@code true}. - * - * @return {@code true} if this task completed - */ - boolean isDone(); - - /** - * Waits if necessary for the computation to complete, and then retrieves its result. - * - * @return the computed result - */ - V get(); - - /** - * Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if - * available. - * - * @param timeout the maximum time to wait - * @return the computed result

if the computation was cancelled - */ - V get(long timeout); - - /** - * Adds the specified listener to this future. The specified listener is notified when this future is done. If this - * future is already completed, the specified listener will be notified immediately. - * - * @param listener FutureListener - */ - void addListener(FutureListener listener); - - /** - * Returns the cause of the failed future - * - * @return the cause of the failure. {@code null} if succeeded or this future is not completed yet. - */ - Throwable getThrowable(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/FutureListener.java b/openmessaging-api/src/main/java/io/openmessaging/FutureListener.java deleted file mode 100644 index 866d7449..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/FutureListener.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -/** - * A listener that is called back when a Promise is done. - * {@code FutureListener} instances are attached to {@link Future} by passing - * them in to {@link Future#addListener(FutureListener)}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface FutureListener { - - /** - * Invoked when the operation completes, be the associated {@link Promise} successful or not. - * @param future The associated promise facade - */ - void operationComplete(Future future); - -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/KeyValue.java b/openmessaging-api/src/main/java/io/openmessaging/KeyValue.java deleted file mode 100644 index 9c617f2f..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/KeyValue.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -import java.util.Set; - -/** - * The {@code KeyValue} class represents a persistent set of attributes, which supports method chaining. - *

- * A {@code KeyValue} object only allows {@code String} keys and can contain four primitive type as values: {@code int}, - * {@code long}, {@code double}, {@code String}. - *

- * The {@code KeyValue} is a replacement of {@code Properties}, with simpler interfaces and reasonable entry limits. - *

- * A {@code KeyValue} object may be used in concurrent scenarios, so the implementation of {@code KeyValue} should - * consider concurrent related issues. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface KeyValue { - - /** - * Inserts or replaces {@code boolean} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, boolean value); - - /** - * Inserts or replaces {@code short} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, short value); - - /** - * Inserts or replaces {@code int} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, int value); - - /** - * Inserts or replaces {@code long} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, long value); - - /** - * Inserts or replaces {@code double} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, double value); - - /** - * Inserts or replaces {@code String} value for the specified key. - * - * @param key the key to be placed into this {@code KeyValue} object - * @param value the value corresponding to key - */ - KeyValue put(String key, String value); - - /** - * Searches for the {@code boolean} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, false is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, boolean) - */ - boolean getBoolean(String key); - - /** - * Searches for the {@code boolean} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, false is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, boolean) - */ - boolean getBoolean(String key, boolean defaultValue); - - /** - * Searches for the {@code short} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, zero is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, short) - */ - short getShort(String key); - - /** - * Searches for the {@code short} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, zero is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, short) - */ - short getShort(String key, short defaultValue); - - /** - * Searches for the {@code int} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, zero is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, int) - */ - int getInt(String key); - - /** - * Searches for the {@code int} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, the default value argument is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, int) - */ - int getInt(String key, int defaultValue); - - /** - * Searches for the {@code long} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, zero is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, long) - */ - long getLong(String key); - - /** - * Searches for the {@code long} property with the specified key in this {@code KeyValue} object. If the key is not - * found in this property list, the default value argument is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, long) - */ - long getLong(String key, long defaultValue); - - /** - * Searches for the {@code double} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, zero is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, double) - */ - double getDouble(String key); - - /** - * Searches for the {@code double} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, the default value argument is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, double) - */ - double getDouble(String key, double defaultValue); - - /** - * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, {@code null} is returned. - * - * @param key the property key - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, String) - */ - String getString(String key); - - /** - * Searches for the {@code String} property with the specified key in this {@code KeyValue} object. If the key is - * not found in this property list, the default value argument is returned. - * - * @param key the property key - * @param defaultValue a default value - * @return the value in this {@code KeyValue} object with the specified key value - * @see #put(String, String) - */ - String getString(String key, String defaultValue); - - /** - * Returns a {@link Set} view of the keys contained in this {@code KeyValue} object. - *

- * The set is backed by the {@code KeyValue}, so changes to the set are reflected in the @code KeyValue}, and - * vice-versa. - * - * @return the key set view of this {@code KeyValue} object. - */ - Set keySet(); - - /** - * Tests if the specified {@code String} is a key in this {@code KeyValue}. - * - * @param key possible key - * @return true if and only if the specified key is in this {@code KeyValue}, false - * otherwise. - */ - boolean containsKey(String key); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/MessagingAccessPoint.java b/openmessaging-api/src/main/java/io/openmessaging/MessagingAccessPoint.java deleted file mode 100644 index 80bee1dd..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/MessagingAccessPoint.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -import io.openmessaging.consumer.Consumer; -import io.openmessaging.consumer.MessageListener; -import io.openmessaging.consumer.PullConsumer; -import io.openmessaging.consumer.PushConsumer; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.manager.ResourceManager; -import io.openmessaging.message.MessageFactory; -import io.openmessaging.producer.Producer; -import io.openmessaging.producer.TransactionStateCheckListener; -import java.util.Collection; - -/** - * An instance of {@code MessagingAccessPoint} may be obtained from {@link OMS}, which is capable of creating {@code - * Producer}, {@code Consumer}, {@code ResourceManager}, and other facility entities. - *

- * For example: - *

- * MessagingAccessPoint messagingAccessPoint = OMS.getMessagingAccessPoint("oms:rocketmq://alice@rocketmq.apache.org/us-east:default_space");
- * messagingAccessPoint.startup();
- * Producer producer = messagingAccessPoint.createProducer();
- * producer.startup();
- * producer.send(producer.createBytesMessage("HELLO_QUEUE", "HELLO_BODY".getBytes(Charset.forName("UTF-8"))));
- * 
- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface MessagingAccessPoint { - - /** - * Returns the target OMS specification version of the specified vendor implementation. - * - * @return the OMS version of implementation - * @see OMS#specVersion - */ - String version(); - - /** - * Returns the attributes of this {@code MessagingAccessPoint} instance. - *

- * There are some standard attributes defined by OMS for {@code MessagingAccessPoint}: - *

    - *
  • {@link OMSBuiltinKeys#ACCESS_POINTS}, the specified access points. - *
  • {@link OMSBuiltinKeys#DRIVER_IMPL}, the fully qualified class name of the specified MessagingAccessPoint's - * implementation, the default value is {@literal io.openmessaging..MessagingAccessPointImpl}. - *
  • {@link OMSBuiltinKeys#REGION}, the region the resources reside in. - *
  • {@link OMSBuiltinKeys#ACCOUNT_ID}, the ID of the specific account system that owns the resource. - *
- * - * @return the attributes - */ - KeyValue attributes(); - - /** - * Creates a new {@code Producer} for the specified {@code MessagingAccessPoint}. - * - * @return the created {@code Producer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request due to some internal - * error - * @throws OMSSecurityException if have no authority to create a producer. - */ - Producer createProducer(); - - /** - * Creates a new transactional {@code Producer} for the specified {@code MessagingAccessPoint}, the producer is able - * to respond to requests from the server to check the status of the transaction. - * - * @param transactionStateCheckListener transactional check listener {@link TransactionStateCheckListener} - * @return the created {@code Producer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request due to some internal - * error - * @throws OMSSecurityException if have no authority to create a producer. - */ - Producer createProducer(TransactionStateCheckListener transactionStateCheckListener); - - /** - * Creates a new {@code PushConsumer} for the specified {@code MessagingAccessPoint}. - * The returned {@code PushConsumer} isn't attached to any queue, - * uses {@link PushConsumer#bindQueue(Collection, MessageListener)} to attach queues. - * - * @return the created {@code PushConsumer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request - * due to some internal error - */ - PushConsumer createPushConsumer(); - - /** - * Creates a new {@code PullConsumer} for the specified {@code MessagingAccessPoint}. - * - * @return the created {@code PullConsumer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request - * due to some internal error - */ - PullConsumer createPullConsumer(); - - /** - * Creates a new {@code PushConsumer} for the specified {@code MessagingAccessPoint} with some preset attributes. - * - * @param attributes the preset attributes - * @return the created {@code PushConsumer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request - * due to some internal error - */ - PushConsumer createPushConsumer(KeyValue attributes); - - /** - * Creates a new {@code PullConsumer} for the specified {@code MessagingAccessPoint}. - * - * @return the created {@code PullConsumer} - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request - * due to some internal error - */ - PullConsumer createPullConsumer(KeyValue attributes); - - /** - * Gets a lightweight {@code ResourceManager} instance from the specified {@code MessagingAccessPoint}. - * - * @return the resource manger - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request due to some internal - * error - * @throws OMSSecurityException if have no authority to obtain a resource manager. - */ - ResourceManager resourceManager(); - - /** - * Gets a {@link MessageFactory} instance from the specified {@code MessagingAccessPoint}. - * - * @return the resource manger - * @throws OMSRuntimeException if the {@code MessagingAccessPoint} fails to handle this request due to some internal - * error - */ - MessageFactory messageFactory(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/OMS.java b/openmessaging-api/src/main/java/io/openmessaging/OMS.java deleted file mode 100644 index 4f3d9342..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/OMS.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.internal.DefaultKeyValue; -import io.openmessaging.internal.MessagingAccessPointAdapter; -import io.openmessaging.manager.ResourceManager; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; - -/** - * The oms class provides some static methods to create a {@code MessagingAccessPoint} from the specified OMS driver url - * and some useful util methods. - *

- * The complete OMS driver URL syntax is: - *

- * {@literal oms:://[account_id@]host1[:port1][,host2[:port2],...[,hostN[:portN]]]/} - *

- * The first part of the URL specifies which OMS implementation is to be used, rocketmq is a optional driver type. - *

- * The brackets indicate that the extra access points are optional, and a correct OMS driver url needs at least one - * access point, which consists of hostname and port, like localhost:8081. - * - * @version OMS 1.0.0 - * @see ResourceManager - * @since OMS 1.0.0 - */ -public final class OMS { - /** - * Returns a {@code MessagingAccessPoint} instance from the specified OMS driver url. - * - * @param url the specified OMS driver url - * @return a {@code MessagingAccessPoint} instance - * @throws OMSRuntimeException if the factory fails to create a {@code MessagingAccessPoint} due to some driver url - * some syntax error or internal error. - */ - public static MessagingAccessPoint getMessagingAccessPoint(String url) { - return getMessagingAccessPoint(url, OMS.newKeyValue()); - } - - /** - * Returns a {@code 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. - * - * There are some standard attributes defined by OMS for this method, the same as {@link - * MessagingAccessPoint#attributes()} ()} - * - * @param url the specified OMS driver url - * @return a {@code MessagingAccessPoint} instance - * @throws OMSRuntimeException if the factory fails to create a {@code MessagingAccessPoint} due to some driver url - * some syntax error or internal error. - */ - public static MessagingAccessPoint getMessagingAccessPoint(String url, KeyValue attributes) { - return MessagingAccessPointAdapter.getMessagingAccessPoint(url, attributes); - } - - /** - * Returns a default and internal {@code KeyValue} implementation instance. - * - * @return a {@code KeyValue} instance - */ - public static KeyValue newKeyValue() { - return new DefaultKeyValue(); - } - - /** - * 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. - * - *

- * OMS version follows semver scheme partially. - * - * @see http://semver.org - */ - public static String specVersion = "UnKnown"; - - static { - InputStream stream = OMS.class.getClassLoader().getResourceAsStream("oms.spec.properties"); - try { - if (stream != null) { - Properties properties = new Properties(); - properties.load(stream); - specVersion = String.valueOf(properties.get("version")); - } - } catch (IOException ignore) { - } - } - - private OMS() { - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/OMSBuiltinKeys.java b/openmessaging-api/src/main/java/io/openmessaging/OMSBuiltinKeys.java deleted file mode 100644 index 7d47d9a6..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/OMSBuiltinKeys.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -/** - * This is the centralized source for keys that are used for OMS standard attributes. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface OMSBuiltinKeys { - /** - * The {@code DRIVER_IMPL} key represents the vendor implementation - * entry of {@link MessagingAccessPoint}. - */ - String DRIVER_IMPL = "DRIVER_IMPL"; - - /** - * The {@code ACCESS_POINTS} key shows the specified access points in OMS driver schema. - * @see Access Point Schema - */ - String ACCESS_POINTS = "ACCESS_POINTS"; - - /** - * The {@code ACCOUNT_ID} key shows the specified account info in OMS driver schema. - */ - String ACCOUNT_ID = "ACCOUNT_ID"; - - /** - * The {@code ACCOUNT_KEY} key shows the specified account key in OMS attribute. - */ - String ACCOUNT_KEY = "ACCOUNT_KEY"; - - /** - * The {@code REGION} key shows the specified region in OMS driver schema. - */ - String REGION = "REGION"; -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/OMSResponseStatus.java b/openmessaging-api/src/main/java/io/openmessaging/OMSResponseStatus.java deleted file mode 100644 index cdca2b55..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/OMSResponseStatus.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -import io.openmessaging.exception.OMSRuntimeException; - -/** - * This class defined OpenMessaging response status code: - *

- * 110x: The request was received, continuing process - *

- *

- * 120x: The request was successfully received, understood, and accepted - *

- *

- * 130x: Further action needs to be taken in order to complete the request - *

- *

- * 140x: The request contains bad syntax or cannot be fulfilled - *

- *

- * 150x: The server failed to fulfill an apparently valid request - *

- *

- * 1000x: OpenMessaging internal status code for create {@link MessagingAccessPoint} - *

- */ -public enum OMSResponseStatus { - STATUS_1101(1101, "Unsupported Version"), - - STATUS_1200(1200, "Success"), - - STATUS_1400(1400, "Bad Request"), - - STATUS_1401(1401, "Unauthorized"), - - STATUS_1402(1402, "Message body Required"), - - STATUS_1403(1403, "Forbidden"), - - STATUS_1404(1404, "Destination Not Found"), - - STATUS_1405(1405, "Namespace Not Found"), - - STATUS_1406(1406, "Destination Already Exists"), - - STATUS_1407(1407, "Namespace Already Exists"), - - STATUS_1408(1408, "ConsumerId Already Exists"), - - STATUS_1409(1409, "ProducerId Already Exists"), - - STATUS_1410(1410, "Request Timeout"), - - STATUS_1411(1411, "Message Attributes Too Large"), - - STATUS_1412(1412, "Message Header Too Large"), - - STATUS_1413(1413, "Message Body Too Large"), - - STATUS_1414(1414, "No New Message Found"), - - STATUS_1415(1415, "Max Topics Reached"), - - STATUS_1416(1416, "Max Queues Reached"), - - STATUS_1417(1417, "Max Namespaces Reached"), - - STATUS_1418(1418, "Bad Parameter"), - - STATUS_1500(1500, "Server STATUS"), - - STATUS_1501(1501, "Storage Service STATUS"), - - STATUS_1502(1502, "Storage Service Busy"), - - STATUS_1503(1503, "Service Not Available"), - - STATUS_1504(1504, "Flush Disk Timeout"), - - STATUS_10000(10000, "Can't construct a MessagingAccessPoint instance from the given OMS driver URL [%s]."), - - STATUS_10001(10001, "The OMS driver URL [%s] is illegal."), - - STATUS_10002(10002, "The implementation version [%s] is illegal."), - - STATUS_10003(10003, "The implementation version [%s] isn't compatible with the specification version [%s]."); - - private int statusCode; - - private String reasonPhrase; - - private String more; - - private static final String refBase = "http://openmessaging.cloud/internal/code"; - - OMSResponseStatus(int statusCode, String reasonPhrase) { - this.statusCode = statusCode; - - this.reasonPhrase = reasonPhrase; - - this.more = generateReasonLocation(statusCode, reasonPhrase); - } - - public int getStatusCode() { - return statusCode; - } - - public String getMore() { - return more; - } - - public String getReasonPhrase() { - return reasonPhrase; - } - - public static OMSRuntimeException generateException(OMSResponseStatus status, String... messageArgs) { - return new OMSRuntimeException(status.getStatusCode(), String.format(status.getMore(), (Object[]) messageArgs)); - } - - public static OMSRuntimeException generateException(OMSResponseStatus status) { - return new OMSRuntimeException(status.getStatusCode(), status.getMore()); - } - - public static OMSRuntimeException generateException(int statusCode, String reasonPhrase) { - return new OMSRuntimeException(statusCode, reasonPhrase); - } - - public static String generateReasonLocation(int statusCode, String reasonPhrase) { - return reasonPhrase + "\nFor more information, please visit the URL, " + refBase + "#" + statusCode; - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/Promise.java b/openmessaging-api/src/main/java/io/openmessaging/Promise.java deleted file mode 100644 index 58fbe767..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/Promise.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -/** - * Special {@link Future} which is writable. - *

- * A {@code Promise} can be completed or canceled, cancellation is performed by the {@code cancel} method. - * Once a computation has completed, the computation cannot be cancelled. If you would like to use a {@code Promise} - * for the sake of cancellability but not provide a usable result, you can declare type+s of the form - * {@code Promise} and return {@code null} as a result of the underlying task. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Promise extends Future { - - /** - * Attempts to cancel execution of this task. This attempt will fail if the task has already completed, has already - * been cancelled, or could not be cancelled for some other reason. If successful, and this task has not started - * when {@code cancel} is called, this task should never run. If the task has already started, then the {@code - * mayInterruptIfRunning} parameter determines whether the thread executing this task should be interrupted in an - * attempt to stop the task. - *

- * After this method returns, subsequent calls to {@link #isDone} will always return {@code true}. Subsequent calls - * to {@link #isCancelled} will always return {@code true} if this method returned {@code true}. - * - * @param mayInterruptIfRunning {@code true} if the thread executing this task should be interrupted; otherwise, - * in-progress tasks are allowed to complete - * @return {@code false} if the task could not be cancelled, typically because it has already completed normally; - * {@code true} otherwise - */ - boolean cancel(boolean mayInterruptIfRunning); - - /** - * Set the value to this promise and mark it completed if set successfully. - * - * @param value Value - * @return Whether set is success - */ - boolean set(V value); - - /** - * Marks this promise as a failure and notifies all listeners. - * - * @param cause the cause - * @return Whether set is success - */ - boolean setFailure(Throwable cause); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/ServiceLifeState.java b/openmessaging-api/src/main/java/io/openmessaging/ServiceLifeState.java deleted file mode 100644 index eafdb18f..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/ServiceLifeState.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -/** - * A collection of all service states. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public enum ServiceLifeState { - - /** - * Service has been initialized. - */ - INITIALIZED, - - /** - * Service in starting. - */ - STARTING, - - /** - * Service in running. - */ - STARTED, - - /** - * Service is stopping. - */ - STOPPING, - - /** - * Service has been stopped. - */ - STOPPED, -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/ServiceLifecycle.java b/openmessaging-api/src/main/java/io/openmessaging/ServiceLifecycle.java deleted file mode 100644 index 3066cd56..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/ServiceLifecycle.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging; - -import io.openmessaging.consumer.Consumer; -import io.openmessaging.extension.Extension; -import io.openmessaging.producer.Producer; - -/** - * The {@code ServiceLifecycle} defines a lifecycle interface for a OMS related service endpoint, like {@link Producer}, - * {@link Consumer}, and so on. - *

- * If the service endpoint class implements the {@code ServiceLifecycle} interface, most of the containers can manage - * the lifecycle of the corresponding service endpoint objects easily. - *

- * Any service endpoint should support repeated restart if it implements the {@code ServiceLifecycle} interface. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface ServiceLifecycle extends Extension { - /** - * Used for startup or initialization of a service endpoint. A service endpoint instance will be in a ready state - * after this method has been completed. - */ - void start(); - - /** - * Notify a service instance of the end of its life cycle. Once this method completes, the service endpoint could be - * destroyed and eligible for garbage collection. - */ - void stop(); - - /** - * Used for get service current state, for execution of some operations is dependent on the current service state. - * - * @return This service current state {@link ServiceLifeState} - */ - ServiceLifeState currentState(); - -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/annotation/Optional.java b/openmessaging-api/src/main/java/io/openmessaging/annotation/Optional.java deleted file mode 100644 index b5b9d490..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/annotation/Optional.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.annotation; - -import java.lang.annotation.Documented; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - *

- * A {@code Optional} is an annotation to mark some certain methods ,interfaces and etc. this annotation represented - * these methods or interfaces are not mandatory in OpenMessaging. - *

- * - *

- * If these methods or interfaces adopted by more and more vendors and end users, they may be become the mandatory - * interface in the future. Of course, if they are used very little, they may be removed. - *

- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -@Documented -@Retention(RetentionPolicy.RUNTIME) -@Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE}) -public @interface Optional { -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/BatchMessageListener.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/BatchMessageListener.java deleted file mode 100644 index 09044d65..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/BatchMessageListener.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.consumer; - -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.message.Message; -import java.util.List; - -/** - * A message listener can implement this {@code BatchMessageListener} interface and register itself to a consumer - * instance to asynchronously receive messages. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface BatchMessageListener { - /** - * Callback method to receive incoming messages. - *

- * A message listener should handle different types of {@code BatchMessage}. - * - * @param batchMessage the received batchMessage. - */ - void onReceived(List batchMessage, Context context); - - interface Context { - /** - * Acknowledges the specified and consumed message, which is related to this {@code MessageContext}. - *

- * Messages that have been received but not acknowledged may be redelivered. - * - * @throws OMSRuntimeException if the consumer fails to acknowledge the messages due to some internal error. - */ - void success(MessageReceipt... messages); - - /** - * Acknowledges all messages in this batch, which is related to this {@code MessageContext}. - *

- * - * @throws OMSRuntimeException if the consumer fails to acknowledge the messages due to some internal error. - */ - void ack(); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/Consumer.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/Consumer.java deleted file mode 100644 index 4ea4ea61..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/Consumer.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.consumer; - -import io.openmessaging.Client; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.ServiceLifecycle; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.interceptor.ConsumerInterceptor; -import io.openmessaging.message.Message; -import java.util.Collection; -import java.util.List; -import java.util.Set; - -/** - * A {@code PushConsumer} receives messages from multiple queues, these messages are pushed from MOM server to {@code - * Consumer} client. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Consumer extends ServiceLifecycle, Client { - - /** - * This method is used to find out the collection of queues bind to {@code Consumer}. - * - * @return the queues this consumer is bind, or null if the consumer is not bind queue. - */ - Set getBindQueues(); - - /** - * Adds a {@code ConsumerInterceptor} instance to this consumer. - * - * @param interceptor an interceptor instance. - */ - void addInterceptor(ConsumerInterceptor interceptor); - - /** - * Removes an interceptor from this consumer. - * - * @param interceptor an interceptor to be removed. - */ - void removeInterceptor(ConsumerInterceptor interceptor); - - /** - * Acknowledges the specified and consumed message with the unique message receipt handle, in the scenario of using - * manual commit. - *

- * Messages that have been received but not acknowledged may be redelivered. - * - * @param receipt the receipt handle associated with the consumed message. - */ - void ack(MessageReceipt receipt); - -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageListener.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageListener.java deleted file mode 100644 index 81a3fa8e..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageListener.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.consumer; - -import io.openmessaging.message.Message; -import io.openmessaging.exception.OMSRuntimeException; - -/** - * A message listener must implement this {@code MessageListener} interface and register itself to a consumer instance - * to asynchronously receive messages. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface MessageListener { - /** - * Callback method to receive incoming messages. - *

- * A message listener should handle different types of {@code Message}. - * - * @param message the received message object. - * @param context the context delivered to the consume thread. - */ - void onReceived(Message message, Context context); - - interface Context { - /** - * Acknowledges the specified and consumed message, which is related to this {@code MessageContext}. - *

- * Messages that have been received but not acknowledged may be redelivered. - * - * @throws OMSRuntimeException if the consumer fails to acknowledge the messages due to some internal error. - */ - void ack(); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageReceipt.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageReceipt.java deleted file mode 100644 index 26a75395..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/MessageReceipt.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.consumer; - -/** - * A {@code MessageReceipt} is a {@code Message} with a {@code Receipt}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface MessageReceipt { -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/PullConsumer.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/PullConsumer.java deleted file mode 100755 index 82f7814a..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/PullConsumer.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.consumer; - -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.annotation.Optional; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.exception.OMSTimeOutException; -import io.openmessaging.extension.QueueMetaData; -import io.openmessaging.message.Message; -import java.util.Collection; -import java.util.List; - -/** - * A {@code PullConsumer} pulls messages from the specified queue, and supports submit the consume result by - * acknowledgement. - * - * @version OMS 1.0.0 - * @see MessagingAccessPoint#createPullConsumer() - * @since OMS 1.0.0 - */ -public interface PullConsumer extends Consumer { - - /** - * Bind the {@code Consumer} to a collection of queue in pull model, user can use {@link PullConsumer#receive(long)} - * to get messages from a collection of queue. - *

- * - * @param queueNames a collection of queues. - * @throws OMSSecurityException when have no authority to bind to this queue. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - void bindQueue(Collection queueNames); - - /** - * Unbind the {@code Consumer} from a collection of queues. - *

- * After the success call, this consumer won't receive new message from the specified queue any more. - * - * @param queueNames a collection of queues. - */ - void unbindQueue(Collection queueNames); - - /** - * Receives the next message from the attached queues of this consumer. - *

- * This call blocks indefinitely until a message is arrives, the timeout expires, or until this {@code PullConsumer} - * is shut down. - * - * @return the next message received from the attached queues, or null if the consumer is concurrently shut down or - * the timeout expires - * @throws OMSRuntimeException if the consumer fails to pull the next message due to some internal error. - */ - Message receive(); - - /** - * Receives the next message from the bind queues of this consumer in pull model. - *

- * This call blocks indefinitely until a message is arrives, the timeout expires, or until this {@code PullConsumer} - * is shut down. - * - * @param timeout receive message will blocked at most timeout milliseconds. - * @return the next message received from the bind queues, or null if the consumer is concurrently shut down. - * @throws OMSSecurityException when have no authority to receive messages from this queue. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - Message receive(long timeout); - - /** - * Receives the next message from the which bind queue,partition and receiptId of this consumer in pull model. - *

- * This call blocks indefinitely until a message is arrives, the timeout expires, or until this {@code PullConsumer} - * is shut down. - * - * @param queueName receive message from which queueName in Message Queue. - * @param queueMetaData receive message from which partition in Message Queue. - * @param messageReceipt receive message from which receipt position in Message Queue. - * @param timeout receive message will blocked at most timeout milliseconds. - * @return the next message received from the bind queues, or null if the consumer is concurrently shut down. - * @throws OMSSecurityException when have no authority to receive messages from this queue. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - @Optional - Message receive(String queueName, QueueMetaData queueMetaData, MessageReceipt messageReceipt, long timeout); - - /** - * Receive message in asynchronous way. This call doesn't block user's thread, and user's message resolve logic - * should implement in the {@link MessageListener}. - *

- * - * @param timeout receive messages will blocked at most timeout milliseconds. - * @return the next batch messages received from the bind queues, or null if the consumer is concurrently shut down. - * @throws OMSSecurityException when have no authority to receive messages from this queue. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - List batchReceive(long timeout); - - /** - * Receive message in asynchronous way. This call doesn't block user's thread, and user's message resolve logic - * should implement in the {@link MessageListener}. - *

- * - * @param queueName receive message from which queueName in Message Queue. - * @param queueMetaData receive message from which partition in Message Queue. - * @param messageReceipt receive message from which receipt position in Message Queue. - * @param timeout receive messages will blocked at most timeout milliseconds. - * @return the next batch messages received from the bind queues, or null if the consumer is concurrently shut down. - * @throws OMSSecurityException when have no authority to receive messages from this queue. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - @Optional - List batchReceive(String queueName, QueueMetaData queueMetaData, MessageReceipt messageReceipt, - long timeout); - - /** - * Acknowledges the specified and consumed message with the unique message receipt handle. - *

- * Messages that have been received but not acknowledged may be redelivered. - * - * @param receiptHandle the receipt handle associated with the consumed message - * @throws OMSRuntimeException if the consumer fails to acknowledge the messages due to some internal error. - */ - void ack(MessageReceipt receiptHandle); - -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/consumer/PushConsumer.java b/openmessaging-api/src/main/java/io/openmessaging/consumer/PushConsumer.java deleted file mode 100644 index 3eaf5ae6..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/consumer/PushConsumer.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.consumer; - -import io.openmessaging.KeyValue; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.message.Message; -import java.util.Collection; -import java.util.List; - -/** - * A {@code PushConsumer} receives messages from multiple queues, these messages are pushed from - * MOM server to {@code PushConsumer} client. - * - * @version OMS 1.0.0 - * @see MessagingAccessPoint#createPushConsumer() - * @since OMS 1.0.0 - */ -public interface PushConsumer extends Consumer{ - /** - * Resumes the {@code Consumer} in push model after a suspend. - *

- * This method resumes the {@code Consumer} instance after it was suspended. The instance will not receive new - * messages between the suspend and resume calls. - * - * @throws OMSRuntimeException if the instance has not been suspended. - * @see PushConsumer#suspend() - */ - void resume(); - - /** - * Suspends the {@code Consumer} in push model for later resumption. - *

- * This method suspends the consumer until it is resumed. The consumer will not receive new messages between the - * suspend and resume calls. - *

- * This method behaves exactly as if it simply performs the call {@code suspend(0)}. - * - * @throws OMSRuntimeException if the instance is not currently running. - * @see PushConsumer#resume() - */ - void suspend(); - - /** - * Suspends the {@code Consumer} in push model for later resumption. - *

- * This method suspends the consumer until it is resumed or a specified amount of time has elapsed. The consumer - * will not receive new messages during the suspended state. - *

- * This method is similar to the {@link #suspend()} method, but it allows finer control over the amount of time to - * suspend, and the consumer will be suspended until it is resumed if the timeout is zero. - * - * @param timeout the maximum time to suspend in milliseconds. - * @throws OMSRuntimeException if the instance is not currently running. - */ - void suspend(long timeout); - - /** - * This method is used to find out whether the {@code Consumer} in push model is suspended. - * - * @return true if this {@code Consumer} is suspended, false otherwise. - */ - boolean isSuspended(); - - /** - * Bind the {@code Consumer} to a collection of queue, with a {@code MessageListener}. - *

- * {@link MessageListener#onReceived(Message, MessageListener.Context)} will be called when new delivered message is - * coming. - * - * @param queueNames a collection of queues. - * @param listener a specified listener to receive new message. - * @throws OMSSecurityException when have no authority to bind to this queue. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - void bindQueue(Collection queueNames, MessageListener listener); - - - /** - * Bind the {@code Consumer} to a collection of queue, with a {@code BatchMessageListener}. - *

- * {@link BatchMessageListener#onReceived(List, BatchMessageListener.Context)} will be called when new delivered - * messages is coming. - * - * @param queueNames a collection of queues. - * @param listener a specified listener to receive new messages. - * @throws OMSSecurityException when have no authority to bind to this queue. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - void bindQueue(Collection queueNames, BatchMessageListener listener); - - /** - * Unbind the {@code Consumer} from a collection of queues. - *

- * After the success call, this consumer won't receive new message from the specified queue any more. - * - * @param queueNames a collection of queues. - */ - void unbindQueue(Collection queueNames); - -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSDestinationException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSDestinationException.java deleted file mode 100644 index 495876de..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSDestinationException.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * The {@code OMSDestinationException} must be thrown when the specified destination does not exist or the destination - * is not readable or writable - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSDestinationException extends OMSRuntimeException { - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String) - */ - public OMSDestinationException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, Throwable) - */ - public OMSDestinationException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String, Throwable) - */ - public OMSDestinationException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSMessageFormatException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSMessageFormatException.java deleted file mode 100644 index 69c47835..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSMessageFormatException.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * The {@code OMSMessageFormatException} must be thrown when the provided message is not supported or the attributes are - * the wrong type. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSMessageFormatException extends OMSRuntimeException { - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String) - */ - public OMSMessageFormatException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, Throwable) - */ - public OMSMessageFormatException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String, Throwable) - */ - public OMSMessageFormatException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSRuntimeException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSRuntimeException.java deleted file mode 100644 index 9578786d..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSRuntimeException.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * This is the root class of all unchecked exceptions in the OMS API. - *

- * A OMSException consists of the following parts: - *

    - *
  • A provider-specific string describing the error.
  • - *
  • A provider-specific string error code to identify the specific exception type.
  • - *
- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSRuntimeException extends RuntimeException { - - /** - * Vendor-specific error code - * @see Error - **/ - private final int errorCode; - - /** - * Constructs a {@code OMSRuntimeException} with the specified detail message - * and error code. - * - * @param errorCode a specified error code - * @param message a description of the exception - **/ - public OMSRuntimeException(int errorCode, String message) { - super(message); - this.errorCode = errorCode; - } - - /** - * Constructs a {@code OMSRuntimeException} with the specified error code and cause. - * - * @param errorCode a specified error code - * @param cause the underlying cause of this exception - */ - public OMSRuntimeException(int errorCode, Throwable cause) { - super(cause); - this.errorCode = errorCode; - } - - /** - * Constructs a {@code OMSRuntimeException} with the specified detail message, - * error code and cause. - * - * @param errorCode a specified error code - * @param message a description of the exception - * @param cause the underlying cause of this exception - */ - public OMSRuntimeException(int errorCode, String message, Throwable cause) { - super(message, cause); - this.errorCode = errorCode; - } - - /** - * Returns the error code of this {@code OMSRuntimeException} object. - * - * @return the error code - */ - public int getErrorCode() { - return errorCode; - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSSecurityException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSSecurityException.java deleted file mode 100644 index 2480399e..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSSecurityException.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * The {@code OMSSecurityException} must be thrown when the client have no enough authority to operate an resource. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSSecurityException extends OMSRuntimeException { - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String) - */ - public OMSSecurityException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, Throwable) - */ - public OMSSecurityException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String, Throwable) - */ - public OMSSecurityException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTimeOutException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTimeOutException.java deleted file mode 100644 index 05555897..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTimeOutException.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * The {@code OMSTimeOutException} must be thrown when a blocking operation times out. - *

- * Blocking operations for which a timeout is specified need a means to indicate that the timeout has occurred. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSTimeOutException extends OMSRuntimeException { - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String) - */ - public OMSTimeOutException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, Throwable) - */ - public OMSTimeOutException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String, Throwable) - */ - public OMSTimeOutException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTransactionException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTransactionException.java deleted file mode 100644 index 07523790..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSTransactionException.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.exception; - -/** - * The {@code OMSTransactionException} must be thrown when the client execute a transaction error. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSTransactionException extends OMSRuntimeException { - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String) - */ - public OMSTransactionException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, Throwable) - */ - public OMSTransactionException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSRuntimeException#OMSRuntimeException(int, String, Throwable) - */ - public OMSTransactionException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSUnsupportException.java b/openmessaging-api/src/main/java/io/openmessaging/exception/OMSUnsupportException.java deleted file mode 100644 index 5720d452..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/exception/OMSUnsupportException.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.exception; - -import io.openmessaging.annotation.Optional; - -/** - * The {@code OMSUnsupportException} must be thrown when the specified methods, headers or properties have not been - * provided by vendors, these methods or headers are usually marked by {@link Optional}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class OMSUnsupportException extends OMSRuntimeException { - /** - * @see OMSUnsupportException#OMSUnsupportException(int, String) - */ - public OMSUnsupportException(int errorCode, String message) { - super(errorCode, message); - } - - /** - * @see OMSUnsupportException#OMSUnsupportException(int, Throwable) - */ - public OMSUnsupportException(int errorCode, Throwable cause) { - super(errorCode, cause); - } - - /** - * @see OMSUnsupportException#OMSUnsupportException(int, String, Throwable) - */ - public OMSUnsupportException(int errorCode, String message, Throwable cause) { - super(errorCode, message, cause); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/extension/Extension.java b/openmessaging-api/src/main/java/io/openmessaging/extension/Extension.java deleted file mode 100644 index 56edceb9..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/extension/Extension.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.extension; - -import io.openmessaging.annotation.Optional; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.exception.OMSTimeOutException; -import java.util.Set; - -/** - *

- * This interface contains some methods are used for getting configurations related implementation. but this interface - * are not mandatory. - *

- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -@Optional -public interface Extension { - - /** - * This method used for getting the related queue's meta data, and this method is optional, vendors may not provide - * this method based on their implementation. - *

- * - * @param queueName Queue name, message destination. - * @return {@link QueueMetaData} Queue config in the server - * @throws OMSSecurityException when have no authority to send messages to a given destination. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - Set getQueueMetaData(String queueName); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/extension/ExtensionHeader.java b/openmessaging-api/src/main/java/io/openmessaging/extension/ExtensionHeader.java deleted file mode 100644 index 20e2b32e..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/extension/ExtensionHeader.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.extension; - -import io.openmessaging.annotation.Optional; -import io.openmessaging.message.Message; - -/** - *

- * The {@code ExtensionHeader} interface contains extended properties for common implementations in current messaging - * and streaming field, such as the queue-based partitioning implementation, but the related properties in this - * interface are not mandatory. - *

- * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -@Optional -public interface ExtensionHeader { - /** - * The {@code PARTITION} in extension header field contains the partition of target destination which the message - * is being sent. - *

- * - * When a {@link Message} is set with this value, this message will be delivered to specified partition, but the - * premise is that the implementation of the server side is dependent on the partition or a queue-like storage - * mechanism. - *

- * - * @param partition The specified partition will be sent to. - */ - ExtensionHeader setPartition(int partition); - - /** - * This method is only called by the server. and {@code OFFSET} represents this message offset in partition. - *

- * - * @param offset The offset in the current partition, used to quickly get this message in the queue - */ - ExtensionHeader setOffset(long offset); - - /** - * A client can use the {@code CORRELATION_ID} field to link one message with another. A typical use is to link a - * response message with its request message. - */ - ExtensionHeader setCorrelationId(String correlationId); - - /** - * This field {@code TRANSACTION_ID} is used in transactional message, and it can be used to trace a transaction. - *

- * So the same {@code TRANSACTION_ID} will be appeared not only in prepare message, but also in commit message, and - * consumer received message also contains this field. - */ - ExtensionHeader setTransactionId(String transactionId); - - /** - * The {@code STORE_TIMESTAMP} header field contains the store timestamp of a message in server side. - *

- * When a message is sent, STORE_TIMESTAMP is ignored. - *

- * When the send method returns it contains a server-assigned value. - *

- * This filed is a {@code long} value, measured in milliseconds. - */ - ExtensionHeader setStoreTimestamp(long storeTimestamp); - - /** - * The {@code STORE_HOST} header field contains the store host info of a message in server side. - *

- * When a message is sent, STORE_HOST is ignored. - *

- * When the send method returns it contains a server-assigned value. - */ - ExtensionHeader setStoreHost(String storeHost); - - /** - * The {@code messagekey} header field contains the custom key of a message. - *

- * This key is a customer identifier for a class of messages, and this key may be used for server to hash or - * dispatch messages, or even can use this key to implement order message. - *

- */ - ExtensionHeader setMessageKey(String messageKey); - - /** - * The {@code TRACE_ID} header field contains the trace ID of a message, which represents a global and unique - * identification, to associate key events in the whole lifecycle of a message, like sent by who, stored at where, - * and received by who. - *

- * And, the messaging system only plays exchange role in a distributed system in most cases, so the TraceID can be - * used to trace the whole call link with other parts in the whole system. - */ - ExtensionHeader setTraceId(String traceId); - - /** - * The {@code DELAY_TIME} header field contains a number that represents the delayed times in milliseconds. - *

- * The message will be delivered after delayTime milliseconds starting from {@code BORN_TIMESTAMP} . When this filed - * isn't set explicitly, this means this message should be delivered immediately. - */ - ExtensionHeader setDelayTime(long delayTime); - - /** - * The {@code EXPIRE_TIME} header field contains the expiration time, it represents a time-to-live value. - *

- * The {@code EXPIRE_TIME} represents a relative valid interval that a message can be delivered in it. If the - * EXPIRE_TIME field is specified as zero, that indicates the message does not expire. - *

- *

- * When an undelivered message's expiration time is reached, the message should be destroyed. OMS does not define a - * notification of message expiration. - *

- */ - ExtensionHeader setExpireTime(long expireTime); - - /** - * This method will return the partition of this message belongs. - *

- * - * @return The {@code PARTITION} to which the message belongs - */ - int getPartiton(); - - /** - * This method will return the {@code OFFSET} in the partition to which the message belongs to, but the premise is - * that the implementation of the server side is dependent on the partition or a queue-like storage mechanism. - * - * @return The offset of the partition to which the message belongs. - */ - long getOffset(); - - /** - * See {@link ExtensionHeader#setCorrelationId(String)} - * - * @return correlationId - */ - String getCorrelationId(); - - /** - * See {@link ExtensionHeader#setTransactionId(String)} - * - * @return transactionId - */ - String getTransactionId(); - - /** - * See {@link ExtensionHeader#setStoreTimestamp(long)} - * - * @return storeTimestamp - */ - long getStoreTimestamp(); - - /** - * See {@link ExtensionHeader#setStoreHost(String)} - * - * @return storeHost - */ - String getStoreHost(); - - /** - * See {@link ExtensionHeader#setDelayTime(long)} - * - * @return delayTime - */ - long getDelayTime(); - - /** - * See {@link ExtensionHeader#setExpireTime(long)} - * - * @return expireTime - */ - long getExpireTime(); - - /** - * See {@link ExtensionHeader#setMessageKey(String)} - * - * @return messageKey - */ - String getMessageKey(); - - /** - * See {@link ExtensionHeader#setTraceId(String)} - * - * @return traceId - */ - String getTraceId(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/extension/QueueMetaData.java b/openmessaging-api/src/main/java/io/openmessaging/extension/QueueMetaData.java deleted file mode 100644 index 0a0409b7..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/extension/QueueMetaData.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.extension; - -import io.openmessaging.annotation.Optional; -import java.util.List; -import java.util.Set; - -/** - * This interface {@code QueueMetaData} contains methods are used for getting configurations related some certain - * implementation. but this interface are not mandatory. - *

- * - * In order to improve performance, in some scenarios where message persistence is required, some message middleware - * will store messages on multiple partitions in multi servers. - *

- * - * In some scenarios, it is very useful to get the relevant partitions meta data for a queue. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -@Optional -public interface QueueMetaData { - - /** - * Set queueName to this Message Queue. - * @param queueName - */ - void setQueueName(String queueName); - - /** - * Set the specified partition. - * @param partitionId - */ - void setPartitionId(int partitionId); - - /** - * Get partition identifier of target queue. - * - * @return Partition identifier - */ - int partitionId(); - - /** - * Queue name - *

- * - * @return Queue name. - */ - String queueName(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/interceptor/ConsumerInterceptor.java b/openmessaging-api/src/main/java/io/openmessaging/interceptor/ConsumerInterceptor.java deleted file mode 100644 index 98aba203..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/interceptor/ConsumerInterceptor.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.interceptor; - -import io.openmessaging.message.Message; -import io.openmessaging.consumer.MessageListener; - -/** - * A {@code ConsumerInterceptor} is used to intercept consume operations of push consumer. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface ConsumerInterceptor { - /** - * Invoked before the invocation of {@link MessageListener#onReceived(Message, MessageListener.Context)}. - * - * @param message the message is actually received. - * @param attributes the extensible attributes delivered to the intercept thread. - */ - void preReceive(Message message, Context attributes); - - /** - * Invoked after the invocation of {@link MessageListener#onReceived(Message, MessageListener.Context)}. - * - * @param message the message is actually received. - * @param attributes the extensible attributes delivered to the intercept thread. - */ - void postReceive(Message message, Context attributes); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/interceptor/Context.java b/openmessaging-api/src/main/java/io/openmessaging/interceptor/Context.java deleted file mode 100644 index 2ec6498b..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/interceptor/Context.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.interceptor; - -import io.openmessaging.KeyValue; - -/** - * A {@code Context} is used to transfer user's business data in the interceptor. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Context { - - /** - * Returns the attributes of this {@code Context} instance. - * - * @return the attributes. - */ - KeyValue attributes(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/interceptor/ProducerInterceptor.java b/openmessaging-api/src/main/java/io/openmessaging/interceptor/ProducerInterceptor.java deleted file mode 100644 index e41f60a0..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/interceptor/ProducerInterceptor.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.interceptor; - -import io.openmessaging.message.Message; - -/** - * A {@code ProducerInterceptor} is used to intercept send operations of producer. - *

- * The interceptor is able to view or modify the message being transmitted and collect the send record. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface ProducerInterceptor { - /** - * Invoked before the message is actually sent to the network. - *

- * This allows for modification of the message if necessary. - * - * @param message a message will be sent. - * @param attributes the extensible attributes delivered to the intercept thread. - */ - void preSend(Message message, Context attributes); - - /** - * Invoked immediately after the successful send invocation. - * - * @param message the message is actually sent. - * @param attributes the extensible attributes delivered to the intercept thread. - */ - void postSend(Message message, Context attributes); - -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/internal/AccessPointURI.java b/openmessaging-api/src/main/java/io/openmessaging/internal/AccessPointURI.java deleted file mode 100644 index 52336b91..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/internal/AccessPointURI.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.OMSResponseStatus; - -import static io.openmessaging.OMSResponseStatus.generateException; - -/** - * Represents a AccessPoint String. - * The Connection String describes the details to connect a specific OMS service provider. - */ -public class AccessPointURI { - private static final String PREFIX = "oms:"; - - private final String accessPointString; - private final String driverType; - private final String accountId; - private final String hosts; - private final String region; - - /** - * The standard OMS access point schema is: - *

- * {@literal oms:://[account_id@]host1[:port1][,host2[:port2],...[,hostN[:portN]]]/} - *

- * - * More details please refer to: - * Access Point Schema - */ - private static final String PATTERN = "^oms:.+://.+/.+$"; - - AccessPointURI(String accessPointString) { - validateAccessPointString(accessPointString); - this.accessPointString = accessPointString; - String unprocessedString = accessPointString.substring(PREFIX.length()); - - // Split out the user OMS driver info - int idx = unprocessedString.indexOf(":"); - this.driverType = unprocessedString.substring(0, idx); - - //Skip '://' - unprocessedString = unprocessedString.substring(driverType.length() + 3); - - idx = unprocessedString.lastIndexOf('/'); - - this.region = unprocessedString.substring(idx + 1); - String userAndHostInformation = unprocessedString.substring(0, idx); - - idx = userAndHostInformation.indexOf('@'); - - if (idx > 0) { - accountId = userAndHostInformation.substring(0, idx); - hosts = userAndHostInformation.substring(idx + 1); - } else { - hosts = userAndHostInformation; - accountId = null; - } - } - - public String getAccessPointString() { - return accessPointString; - } - - public String getDriverType() { - return driverType; - } - - public String getAccountId() { - return accountId; - } - - public String getHosts() { - return hosts; - } - - public String getRegion() { - return region; - } - - private void validateAccessPointString(String accessPointString) { - if (!accessPointString.matches(PATTERN)) { - throw generateException(OMSResponseStatus.STATUS_10001, accessPointString); - } - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/internal/DefaultKeyValue.java b/openmessaging-api/src/main/java/io/openmessaging/internal/DefaultKeyValue.java deleted file mode 100644 index 952e17c6..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/internal/DefaultKeyValue.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.KeyValue; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ConcurrentHashMap; - -/** - * The default implementation of the interface {@link KeyValue}, used by OMS internally. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class DefaultKeyValue implements KeyValue { - private Map properties; - - @Override - public KeyValue put(String key, boolean value) { - properties.put(key, String.valueOf(value)); - return this; - } - - @Override - public boolean getBoolean(String key) { - if (!properties.containsKey(key)) { - return false; - } - return Boolean.valueOf(properties.get(key)); - } - - @Override - public boolean getBoolean(String key, boolean defaultValue) { - return properties.containsKey(key) ? getBoolean(key) : defaultValue; - } - - @Override - public short getShort(String key) { - if (!properties.containsKey(key)) { - return 0; - } - return Short.valueOf(properties.get(key)); - } - - @Override - public short getShort(String key, short defaultValue) { - return properties.containsKey(key) ? getShort(key) : defaultValue; - } - - @Override - public KeyValue put(String key, short value) { - properties.put(key, String.valueOf(value)); - return this; - } - - public DefaultKeyValue() { - properties = new ConcurrentHashMap(); - } - - @Override - public KeyValue put(String key, int value) { - properties.put(key, String.valueOf(value)); - return this; - } - - @Override - public KeyValue put(String key, long value) { - properties.put(key, String.valueOf(value)); - return this; - } - - @Override - public KeyValue put(String key, double value) { - properties.put(key, String.valueOf(value)); - return this; - } - - @Override - public KeyValue put(String key, String value) { - properties.put(key, String.valueOf(value)); - return this; - } - - @Override - public int getInt(String key) { - if (!properties.containsKey(key)) { - return 0; - } - return Integer.valueOf(properties.get(key)); - } - - @Override - public int getInt(final String key, final int defaultValue) { - return properties.containsKey(key) ? getInt(key) : defaultValue; - } - - @Override - public long getLong(String key) { - if (!properties.containsKey(key)) { - return 0; - } - return Long.valueOf(properties.get(key)); - } - - @Override - public long getLong(final String key, final long defaultValue) { - return properties.containsKey(key) ? getLong(key) : defaultValue; - } - - @Override - public double getDouble(String key) { - if (!properties.containsKey(key)) { - return 0; - } - return Double.valueOf(properties.get(key)); - } - - @Override - public double getDouble(final String key, final double defaultValue) { - return properties.containsKey(key) ? getDouble(key) : defaultValue; - } - - @Override - public String getString(String key) { - return properties.get(key); - } - - @Override - public String getString(final String key, final String defaultValue) { - return properties.containsKey(key) ? getString(key) : defaultValue; - } - - @Override - public Set keySet() { - return properties.keySet(); - } - - @Override - public boolean containsKey(String key) { - return properties.containsKey(key); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/internal/MessagingAccessPointAdapter.java b/openmessaging-api/src/main/java/io/openmessaging/internal/MessagingAccessPointAdapter.java deleted file mode 100644 index ad68dcbf..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/internal/MessagingAccessPointAdapter.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.KeyValue; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.OMSBuiltinKeys; -import io.openmessaging.OMSResponseStatus; -import io.openmessaging.exception.OMSRuntimeException; -import java.lang.reflect.Constructor; - -import static io.openmessaging.OMSResponseStatus.generateException; - -/** - * The {@code MessagingAccessPointAdapter} provides a common implementation to create a specified {@code - * MessagingAccessPoint} instance, used by OMS internally. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public class MessagingAccessPointAdapter { - /** - * Returns a {@code MessagingAccessPoint} instance from the specified OMS driver URL with some preset userHeaders. - * - * @param url the driver URL. - * @param attributes the preset userHeaders. - * @return a {@code MessagingAccessPoint} instance. - * @throws OMSRuntimeException if the adapter fails to create a {@code MessagingAccessPoint} instance from the URL. - */ - public static MessagingAccessPoint getMessagingAccessPoint(String url, KeyValue attributes) { - AccessPointURI accessPointURI = new AccessPointURI(url); - String driverImpl = parseDriverImpl(accessPointURI.getDriverType(), attributes); - - attributes.put(OMSBuiltinKeys.ACCESS_POINTS, accessPointURI.getHosts()); - attributes.put(OMSBuiltinKeys.DRIVER_IMPL, driverImpl); - attributes.put(OMSBuiltinKeys.REGION, accessPointURI.getRegion()); - attributes.put(OMSBuiltinKeys.ACCOUNT_ID, accessPointURI.getAccountId()); - - try { - Class driverImplClass = Class.forName(driverImpl); - Constructor constructor = driverImplClass.getConstructor(KeyValue.class); - MessagingAccessPoint vendorImpl = (MessagingAccessPoint) constructor.newInstance(attributes); - checkSpecVersion(OMS.specVersion, vendorImpl.version()); - return vendorImpl; - } catch (Throwable e) { - throw generateException(OMSResponseStatus.STATUS_10000, url); - } - } - - private static String parseDriverImpl(String driverType, KeyValue attributes) { - if (attributes.containsKey(OMSBuiltinKeys.DRIVER_IMPL)) { - return attributes.getString(OMSBuiltinKeys.DRIVER_IMPL); - } - return "io.openmessaging." + driverType + ".MessagingAccessPointImpl"; - } - - private static void checkSpecVersion(final String specVersion, final String implVersion) { - String majorVerOfImpl; - String majorVerOfSpec = specVersion.substring(0, specVersion.indexOf('.', specVersion.indexOf('.') + 1)); - try { - majorVerOfImpl = implVersion.substring(0, implVersion.indexOf('.', implVersion.indexOf('.') + 1)); - } catch (Throwable e) { - throw generateException(OMSResponseStatus.STATUS_10002, implVersion); - } - if (!majorVerOfSpec.equals(majorVerOfImpl)) { - throw generateException(OMSResponseStatus.STATUS_10003, implVersion, specVersion); - } - } -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/manager/ResourceManager.java b/openmessaging-api/src/main/java/io/openmessaging/manager/ResourceManager.java deleted file mode 100644 index 6baf0c89..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/manager/ResourceManager.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.manager; - -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.exception.OMSTimeOutException; -import java.util.Set; - -/** - * The {@code ResourceManager} is to provide a unified interface of resource management, allowing developers to manage - * the namespace, queue and routing resources. - *

- * Create, set, get and delete are the four basic operations of {@code ResourceManager}. - *

- * {@code ResourceManager} also supports dynamic fetch and update of resource attributes. - *

- * {@link MessagingAccessPoint#resourceManager()} ()} is the unique method to obtain a {@code ResourceManager} instance. - * Changes made through this instance will immediately apply to the message-oriented middleware (MOM) behind {@code - * MessagingAccessPoint}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface ResourceManager { - /** - * Creates a {@code Namespace} resource with some preset attributes. - *

- * A namespace wraps the OMS resources in an abstract concept that makes it appear to the users within the namespace - * that they have their own isolated instance of the global OMS resources. - * - * @param nsName the name of the new namespace. - * @throws OMSSecurityException when have no authority to create namespace. - * @throws OMSTimeOutException when the given timeout elapses before the create operation completes. - * @throws OMSDestinationException when this given destination has been created in the server. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to create namespace due to some internal - * error. - */ - void createNamespace(String nsName); - - /** - * Deletes an existing namespace. - * - * @param nsName the namespace needs to be deleted. - * @throws OMSSecurityException when have no authority to delete this namespace. - * @throws OMSTimeOutException when the given timeout elapses before the delete operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to delete the namespace due to some internal - * error. - */ - void deleteNamespace(String nsName); - - /** - * Switch to an existing namespace. - * - * @param targetNamespace the namespace needs to be switched. - * @throws OMSSecurityException when have no authority to delete this namespace. - * @throws OMSTimeOutException when the given timeout elapses before the delete operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to delete the namespace due to some internal - * error. - */ - void switchNamespace(String targetNamespace); - - /** - * Gets the namespace list in the current {@code MessagingAccessPoint}. - * - * @return the set of all namespaces. - * @throws OMSSecurityException when have no authority to delete this namespace. - * @throws OMSTimeOutException when the given timeout elapses before the list operation completes. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to list the namespace due to some internal - * error. - */ - Set listNamespaces(); - - /** - * Creates a {@code Queue} resource in the configured namespace with some preset attributes. - *

- * The standard OMS {@code Queue} schema must start with the {@code Namespace} prefix: - *

- * {@literal ://} - * - * @param queueName the name of the new queue. - * @throws OMSSecurityException when have no authority to create this queue. - * @throws OMSTimeOutException when the given timeout elapses before the create operation completes. - * @throws OMSDestinationException when the given destination has been created in the server. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to delete the namespace due to some internal - * error. - */ - void createQueue(String queueName); - - /** - * Deletes an existing queue resource. - * - * @param queueName the queue needs to be deleted. - * @throws OMSSecurityException when have no authority to delete this namespace. - * @throws OMSTimeOutException when the given timeout elapses before the delete operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to delete the namespace due to some internal - * error. - */ - void deleteQueue(String queueName); - - /** - * Gets the queue list in the specific namespace. - * - * @param nsName the specific namespace. - * @return the set of queues exists in current namespace. - * @throws OMSSecurityException when have no authority to delete this namespace. - * @throws OMSTimeOutException when the given timeout elapses before the list operation completes. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to list the namespace due to some internal - * error. - */ - Set listQueues(String nsName); - - /** - * In order to enable consumers to get the message in the specified mode, the filter rule follows the sql standard - * to filter out messages. - * - * @param queueName queue name. - * @param filterString SQL expression to filter out messages. - * @throws OMSSecurityException when have no authority to add this filter. - * @throws OMSTimeOutException when the given timeout elapses before the add filter operation completes. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to add a new filter due to some internal - * error. - */ - void filter(String queueName, String filterString); - - /** - * Routing from sourceQueue to targetQueue. Both queues are could be received messages after creating route action. - * - * @param sourceQueue source queue, process messages received from producer and duplicate those to target queue. - * @param targetQueue receive messages from source queue. - * @throws OMSSecurityException when have no authority to add this routing. - * @throws OMSTimeOutException when the given timeout elapses before the routing operation completes. - * @throws OMSRuntimeException when the {@code ResourceManager} fails to add a new routing due to some internal - * error. - */ - void routing(String sourceQueue, String targetQueue); - -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/message/Header.java b/openmessaging-api/src/main/java/io/openmessaging/message/Header.java deleted file mode 100644 index 1017c687..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/message/Header.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.openmessaging.message; - -import io.openmessaging.KeyValue; -import io.openmessaging.extension.ExtensionHeader; - -/** - * The {@code Header} interface is the root interface of all OMS messages, and the most commonly used by OMS message - * {@link Message}. - *

- * The header contains fields used by the messaging system that describes the message's meta information, while the body - * contains the application data being transmitted. - *

- * As for the message header, OMS defines three kinds types: headers {@link Header} {@link ExtensionHeader} and - * properties {@link KeyValue}, with respect to flexibility in vendor implementation and user usage. - *

    - *
  • - * System Headers, OMS defines some standard attributes that represent the characteristics of the message. - *
  • - * - *
- * The body contains the application data being transmitted, which is generally ignored by the messaging system and - * simply transmitted to its destination. - *

- * - * The header part is placed in the implementation classes of {@code Message}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Header { - /** - * The {@code DESTINATION} header field contains the destination to which the message is being sent. - *

- * When a message is set to the {@code Queue}, then the message will be sent to the specified destination. - *

- * When a message is received, its destination is equivalent to the {@code Queue} where the message resides in. - */ - Header setDestination(String destination); - - /** - * The {@code MESSAGE_ID} header field contains a value that uniquely identify each message sent by a {@code - * Producer}. this identifier is generated by producer. - */ - Header setMessageId(String messageId); - - /** - * The {@code BORN_TIMESTAMP} header field contains the time a message was handed off to a {@code Producer} to be - * sent. - *

- * When a message is sent, BORN_TIMESTAMP will be set with current timestamp as the born timestamp of a message in - * client side, on return from the send method, the message's BORN_TIMESTAMP header field contains this value. - *

- * When a message is received its, BORN_TIMESTAMP header field contains this same value. - *

- * This filed is a {@code long} value, measured in milliseconds. - */ - Header setBornTimestamp(long bornTimestamp); - - /** - * The {@code BORN_HOST} header field contains the born host info of a message in client side. - *

- * When a message is sent, BORN_HOST will be set with the local host info, on return from the send method, the - * message's BORN_HOST header field contains this value. - *

- * When a message is received, its BORN_HOST header field contains this same value. - */ - Header setBornHost(String bornHost); - - /** - * The {@code PRIORITY} header field contains the priority level of a message, a message with a higher priority - * value should be delivered preferentially. - *

- * OMS defines a ten level priority value with 1 as the lowest priority and 10 as the highest, and the default - * priority is 5. The priority beyond this region will be ignored. - *

- * OMS does not require or provide any guarantee that the message should be delivered in priority order strictly, - * but the vendor should provide a best effort to deliver expedited messages ahead of normal messages. - *

- * If PRIORITY field isn't set explicitly, use {@code 5} as the default priority. - */ - Header setPriority(short priority); - - /** - * The {@code DURABILITY} header field contains the persistent level of a message, the vendor should guarantee the - * reliability level for a message. - *

- * OMS defines two modes of message delivery: - *

    - *
  • - * PERSISTENT, the persistent mode instructs the vendor should provide stable storage to ensure the message won't be - * lost. - *
  • - *
  • - * NON_PERSISTENT, this mode does not require the message be logged to stable storage, in most cases, the memory - * storage is enough for better performance and lower cost. - *
  • - *
- */ - Header setDurability(short durability); - - /** - * The {@code DELIVERY_COUNT} header field contains a number, which represents the count of the message delivery. - */ - Header setDeliveryCount(int deliveryCount); - - /** - * The field {@code COMPRESSION} in headers represents the message body compress algorithm. vendors are free to - * choose the compression algorithm, but must ensure that the decompressed message is delivered to the user. - */ - Header setCompression(short compression); - - /** - * See {@link Header#setDestination(String)} - * - * @return destination - */ - String getDestination(); - - /** - * See {@link Header#setMessageId(String)} - * - * @return messageId - */ - String getMessageId(); - - /** - * See {@link Header#setBornTimestamp(long)} - * - * @return bornTimestamp - */ - long getBornTimestamp(); - - /** - * See {@link Header#setBornHost(String)} - * - * @return bornHost - */ - String getBornHost(); - - /** - * See {@link Header#setPriority(short)} - * - * @return priority - */ - short getPriority(); - - /** - * See {@link Header#setDurability(short)} - * - * @return durability - */ - short getDurability(); - - /** - * See {@link Header#setDeliveryCount(int)} - * - * @return deliveryCount - */ - int getDeliveryCount(); - - /** - * See {@link Header#setCompression(short)} - * - * @return compression - */ - short getCompression(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/message/Message.java b/openmessaging-api/src/main/java/io/openmessaging/message/Message.java deleted file mode 100644 index a43d23ed..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/message/Message.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.message; - -import io.openmessaging.KeyValue; -import io.openmessaging.annotation.Optional; -import io.openmessaging.consumer.BatchMessageListener; -import io.openmessaging.consumer.Consumer; -import io.openmessaging.consumer.MessageListener; -import io.openmessaging.consumer.MessageReceipt; -import io.openmessaging.exception.OMSMessageFormatException; -import io.openmessaging.extension.ExtensionHeader; - -/** - * The {@code Message} interface is the root interface of all OMS messages, and the most commonly used OMS message is - * {@link Message}. - *

- * Most message-oriented middleware (MOM) products treat messages as lightweight entities that consist of header and - * body and is used by separate applications to exchange a piece of information, like Apache RocketMQ. - *

- * The header contains fields used by the messaging system that describes the message's meta information, while the body - * contains the application data being transmitted. - *

- * As for the message header, OMS defines three kinds types: headers {@link Header} {@link ExtensionHeader} and - * properties {@link KeyValue}, with respect to flexibility in vendor implementation and user usage. - *

    - *
  • - * System Headers, OMS defines some standard attributes that represent the characteristics of the message. - *
  • - *
  • - * User properties, some OMS vendors may require enhanced extra attributes of the message or some users may want to - * clarify some customized attributes to draw the body. OMS provides the improved scalability for these scenarios. - *
  • - *
- * The body contains the application data being transmitted, which is generally ignored by the messaging system and - * simply transmitted to its destination. - *

- * In BytesMessage, the body is just a byte array, may be compressed and uncompressed in the transmitting process by the - * messaging system. The application is responsible for explaining the concrete content and format of the message body, - * OMS is never aware of that. - * - * The body part is placed in the implementation classes of {@code Message}. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Message { - /** - * Returns all the system header fields of the {@code Message} object as a {@code KeyValue}. - * - * @return the system headers of a {@code Message} - */ - Header header(); - - /** - * This interface is optional, Therefore, users need to check whether the interface is implemented and the - * correctness of its implementation. - *

- * - * @return The implementation of {@link ExtensionHeader} - */ - @Optional - ExtensionHeader extensionHeader(); - - /** - * Returns all the customized user header fields of the {@code Message} object as a {@code KeyValue}. - * - * @return the user properties of a {@code Message} - */ - KeyValue properties(); - - /** - * Get data from message body - * - * @return message body - * @throws OMSMessageFormatException if the message body cannot be assigned to the specified type - */ - byte[] getData(); - - /** - * Set data to message body - * - * @param data set message body in binary stream - */ - void setData(byte[] data); - - /** - * Get the {@code MessageReceipt} of this Message, which will be used to acknowledge this message. - * - * @see Consumer#ack(io.openmessaging.consumer.MessageReceipt) - * @see MessageListener.Context#ack() - * @see BatchMessageListener.Context#success(io.openmessaging.consumer.MessageReceipt...) - */ - MessageReceipt getMessageReceipt(); - -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/message/MessageFactory.java b/openmessaging-api/src/main/java/io/openmessaging/message/MessageFactory.java deleted file mode 100644 index 4902d4b6..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/message/MessageFactory.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.message; - -import io.openmessaging.exception.OMSMessageFormatException; -import io.openmessaging.message.Message; - -/** - * A factory interface for creating {@code Message} objects. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface MessageFactory { - /** - * Creates a {@code Message} object. A {@code Message} object is used to send a message containing a stream of - * uninterpreted bytes. - *

- * The returned {@code Message} object only can be sent to the specified queue. - * - * @param queueName the target queue to send - * @param body the body data for a message - * @return the created {@code Message} object - * @throws OMSMessageFormatException when body exceed the maximum length or others. - */ - Message createMessage(String queueName, byte[] body); -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/producer/Producer.java b/openmessaging-api/src/main/java/io/openmessaging/producer/Producer.java deleted file mode 100644 index 3dbc10d4..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/producer/Producer.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.producer; - -import io.openmessaging.Client; -import io.openmessaging.Future; -import io.openmessaging.FutureListener; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.ServiceLifecycle; -import io.openmessaging.exception.OMSDestinationException; -import io.openmessaging.exception.OMSMessageFormatException; -import io.openmessaging.exception.OMSRuntimeException; -import io.openmessaging.exception.OMSSecurityException; -import io.openmessaging.exception.OMSTimeOutException; -import io.openmessaging.exception.OMSTransactionException; -import io.openmessaging.interceptor.ProducerInterceptor; -import io.openmessaging.message.Message; -import io.openmessaging.message.MessageFactory; -import java.util.List; - -/** - * A {@code Producer} is a simple object used to send messages on behalf of a {@code MessagingAccessPoint}. An instance - * of {@code Producer} is created by calling the {@link MessagingAccessPoint#createProducer()} method. - *

- * It provides various {@code send} methods to send a message to a specified destination, which is a {@code Queue} in - * OMS. - *

- * {@link Producer#send(Message)} means send a message to the destination synchronously, the calling thread will block - * until the send request complete. - *

- * {@link Producer#sendAsync(Message)} means send a message to the destination asynchronously, the calling thread won't - * block and will return immediately. Since the send call is asynchronous it returns a {@link Future} for the send - * result. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface Producer extends MessageFactory, ServiceLifecycle, Client { - - /** - * Sends a message to the specified destination synchronously, the destination should be preset to {@link - * Message#header()}, other header fields as well. - * - * @param message a message will be sent. - * @return the successful {@code SendResult}. - * @throws OMSSecurityException when have no authority to send messages to a given destination. - * @throws OMSMessageFormatException when an invalid message is specified. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - */ - SendResult send(Message message); - - /** - * Sends a message to the specified destination asynchronously, the destination should be preset to {@link - * Message#header()}, other header fields as well. - *

- * The returned {@code Promise} will have the result once the operation completes, and the registered {@code - * FutureListener} will be notified, either because the operation was successful or because of an error. - * - * @param message a message will be sent. - * @return the {@code Promise} of an asynchronous message send operation. - * @see Future - * @see FutureListener - */ - Future sendAsync(Message message); - - /** - *

- * There is no {@code Promise} related or {@code RuntimeException} thrown. The calling thread doesn't care about the - * send result and also have no context to get the result. - * - * @param message a message will be sent. - */ - void sendOneway(Message message); - - /** - *

- * Send batch messages to server. - * - * @param messages messages to be sent. - */ - void send(List messages); - - /** - * Send messages to the specified destination asynchronously, the destination should be preset to {@link - * Message#header()}, other header fields as well. - *

- * The returned {@code Promise} will have the result once the operation completes, and the registered {@code - * FutureListener} will be notified, either because the operation was successful or because of an error. - * - * @param messages a batch messages will be sent. - * @return the {@code Promise} of an asynchronous messages send operation. - * @see Future - * @see FutureListener - */ - Future sendAsync(List messages); - - /** - *

- * There is no {@code Promise} related or {@code RuntimeException} thrown. The calling thread doesn't care about the - * send result and also have no context to get the result. - * - * @param messages a batch message will be sent. - */ - void sendOneway(List messages); - - /** - * Adds a {@code ProducerInterceptor} to intercept send operations of producer. - * - * @param interceptor a producer interceptor. - */ - void addInterceptor(ProducerInterceptor interceptor); - - /** - * Remove a {@code ProducerInterceptor}. - * - * @param interceptor a producer interceptor will be removed. - */ - void removeInterceptor(ProducerInterceptor interceptor); - - /** - * Sends a transactional message to the specified destination synchronously, the destination should be preset to - * {@link Message#header()}, other header fields as well. - *

- * A transactional send result will be exposed to consumer if this prepare message send success, and then, you can - * execute your local transaction, when local transaction execute success, users can use {@link - * TransactionalResult#commit()} to commit prepare message,otherwise can use {@link TransactionalResult#rollback()} - * to roll back this prepare message. - *

- * - * @param message a prepare transactional message will be sent. - * @return the successful {@code SendResult}. - * @throws OMSSecurityException when have no authority to send messages to a given destination. - * @throws OMSMessageFormatException when an invalid message is specified. - * @throws OMSTimeOutException when the given timeout elapses before the send operation completes. - * @throws OMSDestinationException when have no given destination in the server. - * @throws OMSRuntimeException when the {@code Producer} fails to send the message due to some internal error. - * @throws OMSTransactionException when used normal producer which haven't register {@link - * TransactionStateCheckListener}. - */ - TransactionalResult prepare(Message message); - -} \ No newline at end of file diff --git a/openmessaging-api/src/main/java/io/openmessaging/producer/SendResult.java b/openmessaging-api/src/main/java/io/openmessaging/producer/SendResult.java deleted file mode 100644 index 84b3241b..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/producer/SendResult.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.producer; - -/** - * The result of sending a OMS message to server with the message id and some attributes. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface SendResult { - /** - * The unique message id related to the {@code SendResult} instance. - * - * @return the message id. - */ - String messageId(); -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionStateCheckListener.java b/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionStateCheckListener.java deleted file mode 100644 index efa0d5f1..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionStateCheckListener.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.producer; - -import io.openmessaging.message.Message; - -/** - * Each executor will be associated with a transactional message, can be used to execute local transaction branch and - * submit the transaction status(commit or rollback). - *

- * - * The associated message will be exposed to consumer when the local transaction has been committed, or be discarded if - * local transaction has been rolled back. - * - *

- * If the executor doesn't submit the transaction status for a long time, the server may lookup it forwardly through - * {@link TransactionStateCheckListener#check(Message, TransactionalContext)} - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface TransactionStateCheckListener { - - /** - * Checks the status of the local transaction branch. - * - * @param message the associated message. - * @param context the check context. - */ - void check(Message message, TransactionalContext context); - - interface TransactionalContext { - /** - * Commits a transaction. - */ - void commit(); - - /** - * Rolls back a transaction. - */ - void rollback(); - - /** - * Unknown transaction status, may be this transaction still on going. - */ - void unknown(); - } -} diff --git a/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionalResult.java b/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionalResult.java deleted file mode 100644 index ed1644b8..00000000 --- a/openmessaging-api/src/main/java/io/openmessaging/producer/TransactionalResult.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.producer; - -/** - * The result of sending a OMS prepare message to server with the message id, this result can be used to commits or or - * rolls back a prepare message. - * - * @version OMS 1.0.0 - * @since OMS 1.0.0 - */ -public interface TransactionalResult extends SendResult { - /** - * The unique transactionId id related to the {@code TransactionResult} instance. - * - * @return the transactional id - */ - String transactionId(); - - /** - * Commits a transaction. - */ - void commit(); - - /** - * Rolls back a transaction. - */ - void rollback(); -} diff --git a/openmessaging-api/src/main/resources/oms.spec.properties b/openmessaging-api/src/main/resources/oms.spec.properties deleted file mode 100644 index e5683df8..00000000 --- a/openmessaging-api/src/main/resources/oms.spec.properties +++ /dev/null @@ -1 +0,0 @@ -version=${project.version} \ No newline at end of file diff --git a/openmessaging-api/src/test/java/io/openmessaging/internal/AccessPointURITest.java b/openmessaging-api/src/test/java/io/openmessaging/internal/AccessPointURITest.java deleted file mode 100644 index b11ff408..00000000 --- a/openmessaging-api/src/test/java/io/openmessaging/internal/AccessPointURITest.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.exception.OMSRuntimeException; -import org.junit.Test; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.assertj.core.api.Fail.failBecauseExceptionWasNotThrown; - -public class AccessPointURITest { - private String fullSchemaURI = "oms:rocketmq://alice@rocketmq.apache.org/us-east"; - - @Test - public void testParse_DriverIsIllegal() { - String missDriverType = "oms://alice@rocketmq.apache.org/us-east"; - try { - new AccessPointURI(missDriverType); - failBecauseExceptionWasNotThrown(OMSRuntimeException.class); - } catch (Exception e) { - assertThat(e).hasMessageContaining(String.format("The OMS driver URL [%s] is illegal.", missDriverType)); - } - - - String missRegion = "oms:rocketmq://alice@rocketmq.apache.org/"; - try { - new AccessPointURI(missRegion); - failBecauseExceptionWasNotThrown(OMSRuntimeException.class); - } catch (Exception e) { - assertThat(e).hasMessageContaining(String.format("The OMS driver URL [%s] is illegal.", missRegion)); - } - } - - @Test - public void testGetAccessPointString() { - AccessPointURI accessPointURI = new AccessPointURI(fullSchemaURI); - assertThat(accessPointURI.getAccessPointString()).isEqualTo(fullSchemaURI); - } - - @Test - public void testGetDriverType() { - AccessPointURI accessPointURI = new AccessPointURI(fullSchemaURI); - assertThat(accessPointURI.getDriverType()).isEqualTo("rocketmq"); - } - - @Test - public void testGetAccountId() { - AccessPointURI accessPointURI = new AccessPointURI(fullSchemaURI); - assertThat(accessPointURI.getAccountId()).isEqualTo("alice"); - } - - @Test - public void testGetHosts() { - AccessPointURI accessPointURI = new AccessPointURI(fullSchemaURI); - assertThat(accessPointURI.getHosts()).isEqualTo("rocketmq.apache.org"); - - String multipleHostsURI = "oms:rocketmq://alice@rocketmq.apache.org,pulsar.apache.org:9091/us-east:default_space"; - accessPointURI = new AccessPointURI(multipleHostsURI); - assertThat(accessPointURI.getHosts()).isEqualTo("rocketmq.apache.org,pulsar.apache.org:9091"); - } - - @Test - public void testGetRegion() { - AccessPointURI accessPointURI = new AccessPointURI(fullSchemaURI); - - assertThat(accessPointURI.getRegion()).isEqualTo("us-east"); - } -} \ No newline at end of file diff --git a/openmessaging-api/src/test/java/io/openmessaging/internal/DefaultKeyValueTest.java b/openmessaging-api/src/test/java/io/openmessaging/internal/DefaultKeyValueTest.java deleted file mode 100644 index 71d70484..00000000 --- a/openmessaging-api/src/test/java/io/openmessaging/internal/DefaultKeyValueTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.KeyValue; -import org.junit.Test; - -import static org.assertj.core.api.Assertions.assertThat; - -public class DefaultKeyValueTest { - private KeyValue keyValue = new DefaultKeyValue(); - - @Test - public void testPutAndGet() throws Exception { - keyValue.put("IntKey", 123); - assertThat(keyValue.getInt("IntKey")).isEqualTo(123); - - keyValue.put("StringKey", "HELLO"); - assertThat(keyValue.getString("StringKey")).isEqualTo("HELLO"); - - keyValue.put("LongKey", 123L); - assertThat(keyValue.getLong("LongKey")).isEqualTo(123L); - - keyValue.put("DoubleKey", 1.23); - assertThat(keyValue.getDouble("DoubleKey")).isEqualTo(1.23); - } - - @Test - public void testKeySet() throws Exception { - keyValue.put("IndexKey", 123); - assertThat(keyValue.keySet()).contains("IndexKey"); - } - - @Test - public void testContainsKey() throws Exception { - keyValue.put("ContainsKey", 123); - assertThat(keyValue.containsKey("ContainsKey")).isTrue(); - } - -} \ No newline at end of file diff --git a/openmessaging-api/src/test/java/io/openmessaging/internal/InternalErrorCodeTest.java b/openmessaging-api/src/test/java/io/openmessaging/internal/InternalErrorCodeTest.java deleted file mode 100644 index f13833bb..00000000 --- a/openmessaging-api/src/test/java/io/openmessaging/internal/InternalErrorCodeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.OMSResponseStatus; -import io.openmessaging.exception.OMSRuntimeException; -import org.junit.Test; - -import static org.assertj.core.api.Assertions.assertThat; - -public class InternalErrorCodeTest { - @Test - public void generateInternalException() { - OMSRuntimeException runtimeException = OMSResponseStatus.generateException(OMSResponseStatus.STATUS_10002, "1.1.0"); - assertThat(runtimeException.getErrorCode()).isEqualTo(OMSResponseStatus.STATUS_10002.getStatusCode()); - assertThat(runtimeException.getMessage()).contains(String.format("The implementation version [%s] is illegal.", "1.1.0")); - } - - -} \ No newline at end of file diff --git a/openmessaging-api/src/test/java/io/openmessaging/internal/MessagingAccessPointAdapterTest.java b/openmessaging-api/src/test/java/io/openmessaging/internal/MessagingAccessPointAdapterTest.java deleted file mode 100644 index b348996e..00000000 --- a/openmessaging-api/src/test/java/io/openmessaging/internal/MessagingAccessPointAdapterTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package io.openmessaging.internal; - -import io.openmessaging.KeyValue; -import io.openmessaging.MessagingAccessPoint; -import io.openmessaging.OMS; -import io.openmessaging.OMSBuiltinKeys; -import io.openmessaging.consumer.Consumer; -import io.openmessaging.consumer.PullConsumer; -import io.openmessaging.consumer.PushConsumer; -import io.openmessaging.manager.ResourceManager; -import io.openmessaging.message.MessageFactory; -import io.openmessaging.producer.Producer; -import io.openmessaging.producer.TransactionStateCheckListener; -import org.junit.Test; - -import static org.assertj.core.api.Assertions.assertThat; - -public class MessagingAccessPointAdapterTest { - @Test - public void getMessagingAccessPoint() { - String testURI = "oms:test-vendor://alice@rocketmq.apache.org/us-east:default_space"; - - KeyValue keyValue = OMS.newKeyValue(); - keyValue.put(OMSBuiltinKeys.DRIVER_IMPL, "io.openmessaging.internal.TestVendor"); - MessagingAccessPoint messagingAccessPoint = OMS.getMessagingAccessPoint(testURI, keyValue); - assertThat(messagingAccessPoint).isExactlyInstanceOf(TestVendor.class); - } -} - -class TestVendor implements MessagingAccessPoint { - - public TestVendor(KeyValue keyValue) { - } - - @Override - public Producer createProducer(TransactionStateCheckListener transactionStateCheckListener) { - return null; - } - - @Override - public PushConsumer createPushConsumer() { - return null; - } - - @Override - public PullConsumer createPullConsumer() { - return null; - } - - @Override - public PushConsumer createPushConsumer(KeyValue attributes) { - return null; - } - - @Override - public PullConsumer createPullConsumer(KeyValue attributes) { - return null; - } - - @Override - public MessageFactory messageFactory() { - return null; - } - - @Override - public String version() { - return OMS.specVersion; - } - - @Override - public KeyValue attributes() { - return null; - } - - @Override - public Producer createProducer() { - return null; - } - - @Override - public ResourceManager resourceManager() { - return null; - } -} \ No newline at end of file diff --git a/overview-frame.html b/overview-frame.html new file mode 100644 index 00000000..070c8d98 --- /dev/null +++ b/overview-frame.html @@ -0,0 +1,30 @@ + + + + + + +Overview List (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + +

+ +

 

+ + diff --git a/overview-summary.html b/overview-summary.html new file mode 100644 index 00000000..b8ac060a --- /dev/null +++ b/overview-summary.html @@ -0,0 +1,172 @@ + + + + + + +Overview (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + + + + + + +
+ + +
+

openmessaging 1.0.0-beta-SNAPSHOT API

+
+ + +
+ + + + + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/overview-tree.html b/overview-tree.html new file mode 100644 index 00000000..8cfc5930 --- /dev/null +++ b/overview-tree.html @@ -0,0 +1,262 @@ + + + + + + +Class Hierarchy (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + + + + + + +
+ + + +
+

Class Hierarchy

+ +

Interface Hierarchy

+ +

Annotation Type Hierarchy

+ +

Enum Hierarchy

+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/package-list b/package-list new file mode 100644 index 00000000..0639311f --- /dev/null +++ b/package-list @@ -0,0 +1,9 @@ +io.openmessaging +io.openmessaging.annotation +io.openmessaging.consumer +io.openmessaging.exception +io.openmessaging.extension +io.openmessaging.interceptor +io.openmessaging.manager +io.openmessaging.message +io.openmessaging.producer diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 0ef1d346..00000000 --- a/pom.xml +++ /dev/null @@ -1,151 +0,0 @@ - - - - org.sonatype.oss - oss-parent - 9 - - - 4.0.0 - - io.openmessaging - parent - 1.0.0-beta-SNAPSHOT - pom - - openmessaging - openmessaging specification for java - https://github.com/openmessaging/openmessaging - 2017 - - - OpenMessaging - http://openmessaging.io/ - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - https://github.com/openmessaging/openmessaging-java - scm:git:git@github.com:openmessaging/openmessaging-java.git - scm:git:git@github.com:openmessaging/openmessaging-java.git - HEAD - - - - - OpenMessaging - OpenMessaging Organization - http://openmessaging.io/ - - - - - UTF-8 - UTF-8 - - - 1.8 - 1.8 - - - - openmessaging-admin - openmessaging-api - openmessaging-api-samples - - - - - - org.codehaus.mojo - versions-maven-plugin - 2.3 - - - org.codehaus.mojo - clirr-maven-plugin - 2.7 - - - maven-compiler-plugin - 3.6.1 - - ${maven.compiler.source} - ${maven.compiler.target} - ${maven.compiler.source} - true - true - - - - maven-surefire-plugin - 2.19.1 - - -Xms512m -Xmx1024m - always - - **/*Test.java - - - - - maven-site-plugin - 3.6 - - en_US - UTF-8 - UTF-8 - - - - maven-source-plugin - 3.0.1 - - - attach-sources - - jar - - - - - - maven-javadoc-plugin - 2.10.4 - - UTF-8 - en_US - io.openmessaging.internal - - - - aggregate - - aggregate - - site - - - - - maven-resources-plugin - 3.0.2 - - ${project.build.sourceEncoding} - - - - org.codehaus.mojo - findbugs-maven-plugin - 3.0.4 - - - - diff --git a/script.js b/script.js new file mode 100644 index 00000000..b3463569 --- /dev/null +++ b/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/serialized-form.html b/serialized-form.html new file mode 100644 index 00000000..d0c55f21 --- /dev/null +++ b/serialized-form.html @@ -0,0 +1,185 @@ + + + + + + +Serialized Form (openmessaging 1.0.0-beta-SNAPSHOT API) + + + + + + + + +
+ + + + + + + +
+ + +
+

Serialized Form

+
+
+ +
+ +
+ + + + + + + +
+ + +

Copyright © 2017–2020 OpenMessaging. All rights reserved.

+ + diff --git a/style/checkstyle.xml b/style/checkstyle.xml deleted file mode 100644 index 2872eb72..00000000 --- a/style/checkstyle.xml +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/style/codeStyle.xml b/style/codeStyle.xml deleted file mode 100644 index d969c15c..00000000 --- a/style/codeStyle.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/style/copyright/Apache.xml b/style/copyright/Apache.xml deleted file mode 100644 index e3e3dec3..00000000 --- a/style/copyright/Apache.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/style/copyright/profiles_settings.xml b/style/copyright/profiles_settings.xml deleted file mode 100644 index 747c7e2b..00000000 --- a/style/copyright/profiles_settings.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/stylesheet.css b/stylesheet.css new file mode 100644 index 00000000..98055b22 --- /dev/null +++ b/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +}