public class AmqpConsumer extends Object
| Constructor and Description |
|---|
AmqpConsumer(String hostname,
int port,
String virtualHost,
String username,
String password,
int prefetchCount,
String queue,
String exchange,
boolean exchangeBind,
String routingKey,
int parallelQueues,
boolean tls,
boolean requeueInvalid,
int heartbeatTimeout,
MessageInput sourceInput,
ScheduledExecutorService scheduler,
AmqpTransport amqpTransport) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
AtomicLong |
getLastSecBytesRead() |
AtomicLong |
getTotalBytesRead() |
boolean |
isConnected() |
void |
run() |
void |
stop() |
public AmqpConsumer(String hostname, int port, String virtualHost, String username, String password, int prefetchCount, String queue, String exchange, boolean exchangeBind, String routingKey, int parallelQueues, boolean tls, boolean requeueInvalid, int heartbeatTimeout, MessageInput sourceInput, ScheduledExecutorService scheduler, AmqpTransport amqpTransport)
public void run()
throws IOException
IOExceptionpublic void connect()
throws IOException
IOExceptionpublic void stop()
throws IOException
IOExceptionpublic boolean isConnected()
public AtomicLong getLastSecBytesRead()
public AtomicLong getTotalBytesRead()
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.