public class Sender extends Object
| Constructor and Description |
|---|
Sender() |
Sender(InetAddress address)
Create a sender which sends to a DogStatD on port 8125 at the specified
address.
|
Sender(InetSocketAddress socket)
Create a sender which sends to a DogStatD on the specified port and address.
|
Sender(InetSocketAddress socket,
long throttleInterval)
Create a sender which sends to a DogStatD on the specified port and address.
|
Sender(String address)
Create a sender which sends to a DogStatD on port 8125 at the specified
address.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
send(Message message)
Send message to collector daemon.
|
public Sender(String address)
address - The address to send to.public Sender()
public Sender(InetAddress address)
address - The address to send to.public Sender(InetSocketAddress socket)
socket - The address and port to send to.public Sender(InetSocketAddress socket, long throttleInterval)
socket - The address and port to send to.public boolean send(Message message)
message - The message to send.Copyright © 2016–2017. All rights reserved.