public class DistributedQueueConfiguration extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_AREA_ID |
static int |
DEFAULT_BROKER_ID |
static long |
DEFAULT_CONNECTION_TIMEOUT |
static String |
DEFAULT_GROUP_NAME |
static long |
DEFAULT_LOCAL_CONSUMER_FLAPPING_DELAY |
static long |
DEFAULT_LOCAL_QUEUE_CREATE_DELAY |
static int |
DEFAULT_MAX_CONCURRENT_REQEUSTS |
static byte |
DEFAULT_MAX_TRANSFER_ATTEMPTS_COUNT |
static byte |
DEFAULT_MAX_TRANSFER_COUNT |
static long |
DEFAULT_MONITOR_INTERVAL |
static int |
DEFAULT_REMOTING_REQUEST_THREADS |
static int |
DEFAULT_REMOTING_RESPONSE_THREADS |
static long |
DEFAULT_REMOTING_TAKE_TIMEOUT |
| Constructor and Description |
|---|
DistributedQueueConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRemoteBroker(String value)
Adds a remote broker to our list.
|
Integer |
getAreaId() |
long |
getConnectionTimeout() |
String |
getGroupName() |
long |
getLocalConsumerFlappingDelay() |
long |
getLocalQueueCreateDelay() |
int |
getMaxConcurrentRequests() |
byte |
getMaxTransferAttemptsCount() |
byte |
getMaxTransferCount() |
long |
getMonitorInterval() |
int |
getMonitorThreads() |
com.cloudhopper.commons.util.URL[] |
getRemoteBrokers() |
int |
getRemotingRequestThreads() |
int |
getRemotingResponseThreads() |
long |
getRemotingTakeTimeout() |
void |
setAreaId(Integer value) |
void |
setConnectionTimeout(long value) |
void |
setGroupName(String value) |
void |
setLocalConsumerFlappingDelay(long value) |
void |
setLocalQueueCreateDelay(long value) |
void |
setMaxConcurrentRequests(int value)
public void setDetectDuplicateBrokerIds(boolean value) {
this.detectDuplicateBrokerIds = value;
}
public boolean isDetectDuplicateBrokersIdsEnabled() {
return this.detectDuplicateBrokerIds;
}
public void setBrokerId(int value) {
this.brokerId = value;
}
public int getBrokerId() {
return this.brokerId;
}
|
void |
setMaxTransferAttemptsCount(byte value) |
void |
setMaxTransferCount(byte value) |
void |
setMonitorInterval(long value) |
void |
setMonitorThreads(int value) |
void |
setRemotingRequestThreads(int value) |
void |
setRemotingResponseThreads(int value) |
void |
setRemotingTakeTimeout(long value) |
public static final int DEFAULT_BROKER_ID
public static final String DEFAULT_GROUP_NAME
public static final int DEFAULT_AREA_ID
public static final long DEFAULT_MONITOR_INTERVAL
public static final long DEFAULT_CONNECTION_TIMEOUT
public static final long DEFAULT_LOCAL_CONSUMER_FLAPPING_DELAY
public static final long DEFAULT_LOCAL_QUEUE_CREATE_DELAY
public static final byte DEFAULT_MAX_TRANSFER_COUNT
public static final byte DEFAULT_MAX_TRANSFER_ATTEMPTS_COUNT
public static final int DEFAULT_MAX_CONCURRENT_REQEUSTS
public static final int DEFAULT_REMOTING_REQUEST_THREADS
public static final int DEFAULT_REMOTING_RESPONSE_THREADS
public static final long DEFAULT_REMOTING_TAKE_TIMEOUT
public void setMaxConcurrentRequests(int value)
public int getMaxConcurrentRequests()
public void setRemotingRequestThreads(int value)
public int getRemotingRequestThreads()
public void setRemotingResponseThreads(int value)
public int getRemotingResponseThreads()
public void setRemotingTakeTimeout(long value)
public long getRemotingTakeTimeout()
public void setMaxTransferCount(byte value)
public byte getMaxTransferCount()
public void setMaxTransferAttemptsCount(byte value)
public byte getMaxTransferAttemptsCount()
public void setLocalConsumerFlappingDelay(long value)
public long getLocalConsumerFlappingDelay()
public void setLocalQueueCreateDelay(long value)
public long getLocalQueueCreateDelay()
public void setMonitorThreads(int value)
public int getMonitorThreads()
public void setMonitorInterval(long value)
public long getMonitorInterval()
public void setConnectionTimeout(long value)
public long getConnectionTimeout()
public void setAreaId(Integer value)
public Integer getAreaId()
public void setGroupName(String value)
public String getGroupName()
public void addRemoteBroker(String value) throws MalformedURLException, IllegalArgumentException
value - MalformedURLExceptionIllegalArgumentExceptionpublic com.cloudhopper.commons.util.URL[] getRemoteBrokers()
Copyright © 2009-2014 Cloudhopper by Twitter. All Rights Reserved.