-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change AsyncRawSocketSender implementing inferface to return Future<V>
- Loading branch information
Showing
3 changed files
with
45 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.fluentd.logger.sender; | ||
|
||
import org.fluentd.logger.errorhandler.ErrorHandler; | ||
|
||
import java.util.Map; | ||
import java.util.concurrent.Future; | ||
|
||
public interface AsyncSender { | ||
Future<Boolean> emit(String tag, Map<String, Object> data); | ||
|
||
Future<Boolean> emit(String tag, long timestamp, Map<String, Object> data); | ||
|
||
void flush(); | ||
|
||
void close(); | ||
|
||
String getName(); | ||
|
||
boolean isConnected(); | ||
|
||
void setErrorHandler(ErrorHandler errorHandler); | ||
|
||
void removeErrorHandler(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters