public class AMQPSender extends Object
| Constructor and Description |
|---|
AMQPSender(Configuration configuration) |
AMQPSender(String hostname,
int port,
String vHost,
String username,
String password,
String queueName,
String queueType,
String exchangeName,
String routingKey,
boolean amqpPersistentMessagesEnabled,
org.joda.time.Duration amqpConnectTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
connect() |
boolean |
isConnected() |
void |
send(Message msg) |
public AMQPSender(String hostname, int port, String vHost, String username, String password, String queueName, String queueType, String exchangeName, String routingKey, boolean amqpPersistentMessagesEnabled, org.joda.time.Duration amqpConnectTimeout)
@Inject public AMQPSender(Configuration configuration)
public void send(Message msg) throws IOException
IOExceptionpublic void connect()
throws IOException
IOExceptionpublic boolean isConnected()
public void close()
throws IOException
IOExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.