Interface StatsdChannel
- All Superinterfaces:
AutoCloseable,Closeable
Statsd destination channel.
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connect to the destination.intsend(ByteBuffer buffer) Send data to the destination.
-
Method Details
-
connect
Connect to the destination.It is guaranteed that the sender will call
Closeable.close()before attempting to reconnect.- Throws:
IOException- if connection was not established
-
send
Send data to the destination.- Parameters:
buffer- data- Returns:
- bytes written, or -1 if destination is not available
- Throws:
IOException- if data could not be written
-