Skip to content

Commit

Permalink
[pinpoint-apm#9932] Removed thrift dependency of Agent module`
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed May 17, 2023
1 parent 8d18b76 commit fef0848
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public AsyncQueueingExecutor(int queueSize, String executorName, AsyncQueueingEx
this.executeThread = this.createExecuteThread(executorName);
this.executorName = executeThread.getName();

this.listener = Objects.requireNonNull(listener, "consumer");
this.listener = Objects.requireNonNull(listener, "listener");
}

private Thread createExecuteThread(String executorName) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@
/**
* @author emeroad
*/
public class EmptyConsumer<T> implements Consumer<T> {
public class EmptyAsyncQueueingExecutorListener<T> implements AsyncQueueingExecutorListener<T> {

private final Logger logger = LogManager.getLogger(this.getClass());

private final boolean isDebug = logger.isDebugEnabled();

@Override
public void acceptN(Collection<T> dtoList) {
public void execute(Collection<T> dtoList) {
if (isDebug) {
logger.debug("execute()");
logger.debug("execute(N)");
}
}

@Override
public void accept(T dto) {
public void execute(T dto) {
if (isDebug) {
logger.debug("execute()");
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public UnsafeArrayCollection(int maxSize) {
this.array = new Object[maxSize];
}


@Override
public boolean add(E o) {
if (array.length < size) {
Expand Down

0 comments on commit fef0848

Please sign in to comment.