public interface Sender
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
addListener(SenderListener listener)
Registers a listener to get notifications of sending payloads through the
sender listener . |
void |
close(boolean wait)
Closes the sender.
|
java.util.List<SenderListener> |
getListeners()
Get the list of listeners registered.
|
void |
send(com.rollbar.api.payload.Payload payload)
Sends the payload getting notifications on the
send callback passed. |
void send(com.rollbar.api.payload.Payload payload)
send callback
passed.payload
- the payload.void addListener(SenderListener listener)
sender listener
.listener
- the listener.java.util.List<SenderListener> getListeners()
void close(boolean wait) throws java.lang.Exception
wait
- flag to indicate if it should wait before closing.java.lang.Exception
- the exception.