Skip to content

Commit

Permalink
fix checkStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
xwm1992 committed Nov 1, 2021
1 parent 670c2f2 commit 691bcb3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*
* <p>
* <strong>
* Thread safe requirements: this interface will be invoked by multi threads, so users should keep thread safe during
* the consume process.
* Thread safe requirements: this interface will be invoked by multi threads,
* so users should keep thread safe during the consume process.
* </strong>
* </p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
package org.apache.eventmesh.api;


import io.cloudevents.CloudEvent;
import org.apache.eventmesh.api.exception.OnExceptionContext;
import org.apache.eventmesh.api.producer.Producer;

/**
* Call back interface used in {@link Producer#sendAsync(CloudEvent, SendCallback)}.
*/
public interface SendCallback {

void onSuccess(final SendResult sendResult);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.eventmesh.api.consumer;

import io.cloudevents.CloudEvent;

import org.apache.eventmesh.api.AbstractContext;
import org.apache.eventmesh.api.EventListener;
import org.apache.eventmesh.spi.EventMeshExtensionType;
Expand All @@ -27,10 +28,10 @@
import java.util.Properties;

/**
* Consumer Interface
* Consumer Interface.
*/
@EventMeshSPI(isSingleton = false, eventMeshExtensionType = EventMeshExtensionType.CONNECTOR)
public interface EMConsumer {
public interface Consumer {

void init(Properties keyValue) throws Exception;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@

package org.apache.eventmesh.api.exception;

public class ConnectorRuntimeException extends RuntimeException{
public class ConnectorRuntimeException extends RuntimeException {

public ConnectorRuntimeException(){
public ConnectorRuntimeException() {

}

public ConnectorRuntimeException(String message){
public ConnectorRuntimeException(String message) {
super(message);
}

public ConnectorRuntimeException(Throwable throwable){
public ConnectorRuntimeException(Throwable throwable) {
super(throwable);
}

public ConnectorRuntimeException(String message, Throwable throwable){
public ConnectorRuntimeException(String message, Throwable throwable) {
super(message, throwable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
import java.util.Properties;

/**
* Producer Interface
* Producer Interface.
*/
@EventMeshSPI(isSingleton = false, eventMeshExtensionType = EventMeshExtensionType.CONNECTOR)
public interface EMProducer {
public interface Producer {

void init(Properties properties) throws Exception;

Expand Down

0 comments on commit 691bcb3

Please sign in to comment.