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
IOException
public void connect() throws IOException
IOException
public void stop() throws IOException
IOException
public boolean isConnected()
public AtomicLong getLastSecBytesRead()
public AtomicLong getTotalBytesRead()
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.