本文整理了Java中zipkin.internal.Nullable
类的一些代码示例,展示了Nullable
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nullable
类的具体详情如下:
包路径:zipkin.internal.Nullable
类名称:Nullable
暂无
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
/**
* Name of the datacenter that will be considered "local" for latency load balancing. When
* unset, load-balancing is round-robin.
*/
public Builder localDc(@Nullable String localDc) {
this.localDc = localDc;
return this;
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
/** Will throw an exception on startup if authentication fails. No default. */
public Builder password(@Nullable String password) {
this.password = password;
return this;
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
public Factory(Session session, @Nullable Integer indexTtl,
@Nullable ConcurrentMap<PartitionKeyToTraceId, Pair<Long>> sharedState) {
this.session = session;
this.indexTtl = indexTtl;
this.sharedState = sharedState;
}
代码示例来源:origin: io.zipkin.java/spanstore-guava
/**
* Version of {@link zipkin.SpanStore#getDependencies} that returns {@link ListenableFuture}.
*/
ListenableFuture<List<DependencyLink>> getDependencies(long endTs, @Nullable Long lookback);
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-mysql
DependencyLinkV2SpanIterator(PeekingIterator<Record> delegate, @Nullable Long traceIdHi,
long traceIdLo) {
this.delegate = delegate;
this.traceIdHi = traceIdHi;
this.traceIdLo = traceIdLo;
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
/** Will throw an exception on startup if authentication fails. No default. */
public Builder username(@Nullable String username) {
this.username = username;
return this;
}
代码示例来源:origin: io.zipkin.java/storage-jdbc
public Builder listenerProvider(@Nullable ExecuteListenerProvider listenerProvider) {
this.listenerProvider = listenerProvider;
return this;
}
代码示例来源:origin: io.zipkin.java/storage-guava
/**
* Version of {@link zipkin.SpanStore#getDependencies} that returns {@link ListenableFuture}.
*/
ListenableFuture<List<DependencyLink>> getDependencies(long endTs, @Nullable Long lookback);
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
@Override
public void toJson(JsonWriter writer, @Nullable BinaryAnnotation value) throws IOException {
throw new UnsupportedOperationException();
}
};
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
@Override
public void toJson(JsonWriter writer, @Nullable Endpoint value) throws IOException {
throw new UnsupportedOperationException();
}
}.nullSafe();
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
@Override
public void toJson(JsonWriter writer, @Nullable Span value) throws IOException {
throw new UnsupportedOperationException();
}
};
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
@Override
public void toJson(JsonWriter writer, @Nullable Annotation value) throws IOException {
throw new UnsupportedOperationException();
}
};
代码示例来源:origin: io.zipkin.java/zipkin-storage-elasticsearch-http
@Override
public void toJson(JsonWriter writer, @Nullable DependencyLink value) throws IOException {
throw new UnsupportedOperationException();
}
};
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
@Override public Set<Object> apply(@Nullable List<Map<Object, ?>> input) {
Set<Object> traceIds = Sets.newLinkedHashSet(input.get(0).keySet());
for (int i = 1; i < input.size(); i++) {
traceIds.retainAll(input.get(i).keySet());
}
return traceIds;
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
@Override public List<String> apply(@Nullable ResultSet input) {
Set<String> spanNames = new HashSet<>();
for (Row row : input) {
spanNames.add(row.getString("span_name"));
}
return Ordering.natural().sortedCopy(spanNames);
}
}
代码示例来源:origin: io.servicecomb/handler-tracing-zipkin
@Nullable
@Override
public Integer statusCode(@Nonnull Response response) {
return response.getStatusCode();
}
}
代码示例来源:origin: io.servicecomb/handler-tracing-zipkin
@Nullable
@Override
public Integer statusCode(@Nonnull Response response) {
return response.getStatusCode();
}
}
代码示例来源:origin: io.servicecomb/handler-tracing-zipkin
@Nullable
@Override
public String requestHeader(@Nonnull Invocation invocation, @Nonnull String key) {
return invocation.getContext().get(key);
}
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
@Override
public ListenableFuture<Map<Long, Long>> apply(@Nullable List<String> serviceNames) {
return getTraceIdsByServiceNames(serviceNames,
request.endTs * 1000, request.lookback * 1000, traceIndexFetchSize);
}
});
代码示例来源:origin: io.zipkin.java/zipkin-storage-cassandra
@Override public List<String> apply(@Nullable ResultSet input) {
Set<String> serviceNames = new HashSet<>();
for (Row row : input) {
serviceNames.add(row.getString("service_name"));
}
return Ordering.natural().sortedCopy(serviceNames);
}
}
内容来源于网络,如有侵权,请联系作者删除!