| 程序包 | 说明 |
|---|---|
| com.aliyun.openservices.aliyun.log.producer | |
| com.aliyun.openservices.aliyun.log.producer.errors | |
| com.aliyun.openservices.aliyun.log.producer.internals |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Producer.close()
|
void |
LogProducer.close()
Close this producer.
|
void |
Producer.close(long timeoutMs)
|
void |
LogProducer.close(long timeoutMs)
This method waits up to
timeoutMs for the producer to handle all submitted logs
and close all background threads. |
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
List<com.aliyun.openservices.log.common.LogItem> logItems)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
List<com.aliyun.openservices.log.common.LogItem> logItems)
Send a list of logs asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
Send a list of logs asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
com.aliyun.openservices.log.common.LogItem logItem)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
com.aliyun.openservices.log.common.LogItem logItem)
Send a log asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
Send a log asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
List<com.aliyun.openservices.log.common.LogItem> logItems)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
List<com.aliyun.openservices.log.common.LogItem> logItems)
Send a list of logs asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
Send a list of logs asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
com.aliyun.openservices.log.common.LogItem logItem)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
com.aliyun.openservices.log.common.LogItem logItem)
Send a log asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
Send a log asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems)
Send a list of logs asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback)
Asynchronously send a list of logs and invoke the provided callback when the send has been
acknowledged.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
com.aliyun.openservices.log.common.LogItem logItem)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
com.aliyun.openservices.log.common.LogItem logItem)
Send a log asynchronously.
|
com.google.common.util.concurrent.ListenableFuture<Result> |
Producer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogProducer.send(String project,
String logStore,
String topic,
String source,
String shardHash,
com.aliyun.openservices.log.common.LogItem logItem,
Callback callback)
Send a log asynchronously.
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
LogSizeTooLargeException
The log's size is larger than the maximum allowable size.
|
class |
MaxBatchCountExceedException
The logs exceeds the maximum batch count.
|
class |
ResultFailedException |
class |
TimeoutException
Indicates that a request timed out.
|
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.common.util.concurrent.ListenableFuture<Result> |
LogAccumulator.append(String project,
String logStore,
String topic,
String source,
String shardHash,
List<com.aliyun.openservices.log.common.LogItem> logItems,
Callback callback) |
Copyright © 2019. All rights reserved.