Skip to content

Commit

Permalink
[#5156] Apply AsyncSpanEvent to LinkFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Feb 8, 2019
1 parent 0a4ede9 commit c0f7dda
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 140 deletions.
Expand Up @@ -17,6 +17,7 @@
package com.navercorp.pinpoint.common.server.bo;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.navercorp.pinpoint.common.util.TransactionId;
Expand Down Expand Up @@ -226,7 +227,7 @@ public List<SpanEventBo> getSpanEventBoList() {

public List<SpanChunkBo> getAsyncSpanChunkBoList() {
if (asyncSpanChunkBoList == null) {
this.asyncSpanChunkBoList = new ArrayList<>();
return Collections.emptyList();
}
return asyncSpanChunkBoList;
}
Expand Down
Expand Up @@ -25,16 +25,16 @@
* @author netspider
* @author emeroad
*/
public interface Filter {
public interface Filter<T> {
boolean ACCEPT = true;
boolean REJECT = false;

Filter NONE = new Filter() {
@Override
public boolean include(List<SpanBo> transaction) {
public boolean include(List transaction) {
return ACCEPT;
}
};

boolean include(List<SpanBo> transaction);
boolean include(List<T> transaction);
}
Expand Up @@ -26,7 +26,7 @@
* @author netspider
*
*/
public class FilterChain implements Filter {
public class FilterChain implements Filter<SpanBo> {

private final List<Filter> filterList = new ArrayList<>();

Expand Down

0 comments on commit c0f7dda

Please sign in to comment.