-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from WeBankFinTech/1.2.1
- Loading branch information
Showing
60 changed files
with
1,407 additions
and
2,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
eventmesh-connector-api/src/main/java/com/webank/eventmesh/api/RRCallback.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
eventmesh-connector-api/src/main/java/com/webank/eventmesh/api/SendCallback.java
This file was deleted.
Oops, something went wrong.
25 changes: 12 additions & 13 deletions
25
...esh-connector-api/src/main/java/com/webank/eventmesh/api/consumer/MeshMQPushConsumer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
package com.webank.eventmesh.api.consumer; | ||
|
||
import com.webank.eventmesh.api.AbstractContext; | ||
import io.openmessaging.KeyValue; | ||
import io.openmessaging.consumer.MessageListener; | ||
import io.openmessaging.Message; | ||
import io.openmessaging.consumer.PushConsumer; | ||
import io.openmessaging.api.AsyncMessageListener; | ||
import io.openmessaging.api.MessageListener; | ||
import io.openmessaging.api.Message; | ||
import io.openmessaging.api.Consumer; | ||
|
||
import java.util.List; | ||
import java.util.Properties; | ||
|
||
public interface MeshMQPushConsumer extends PushConsumer { | ||
public interface MeshMQPushConsumer extends Consumer { | ||
|
||
void init(KeyValue keyValue) throws Exception; | ||
void init(Properties keyValue) throws Exception; | ||
|
||
void start() throws Exception; | ||
@Override | ||
void start(); | ||
|
||
// void updateOffset(List<MessageExt> msgs, ConsumeConcurrentlyContext context); | ||
|
||
void updateOffset(List<Message> msgs, AbstractContext context); | ||
|
||
// void registerMessageListener(MessageListenerConcurrently messageListenerConcurrently); | ||
|
||
void subscribe(String topic, final MessageListener listener) throws Exception; | ||
void subscribe(String topic, final AsyncMessageListener listener) throws Exception; | ||
|
||
void unsubscribe(String topic) throws Exception; | ||
|
||
boolean isPause(); | ||
|
||
void pause(); | ||
@Override | ||
void unsubscribe(String topic); | ||
|
||
AbstractContext getContext(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.