• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package software.amazon.awssdk.crt.eventstream;
2 
3 /**
4  * Functor interface for receiving message flush events.
5  */
6 public interface MessageFlushCallback {
7     /**
8      * Invoked when a message has been flushed to the underlying transport mechanism.
9      * @param errorCode If this is 0, the message was successfully written. Otherwise,
10      *                  errorCode represents the reason the message flush failed.
11      */
onCallbackInvoked(int errorCode)12     void onCallbackInvoked(int errorCode);
13 }
14