|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.config.ThrottleSettings
public class ThrottleSettings
This configuration class is derived from optional properties that may be supplied in the <properties> section of a destination. It exists to capture properties related to message thottling in a way that simplifies the ThrottleManager's usage of the configuration.
| Field Summary | |
|---|---|
static int |
POLICY_ERROR
Integer value of error policy |
static int |
POLICY_IGNORE
Integer value of ignore policy |
static int |
POLICY_NONE
Integer value of no policy |
static int |
POLICY_REPLACE
Integer value of replace policy. |
| Constructor Summary | |
|---|---|
ThrottleSettings()
Creates a ThrottleSettings instance with default settings. |
|
| Method Summary | |
|---|---|
String |
getDestinationName()
Returns the destination name for ThrottleSettings. |
int |
getInboundPolicy()
Returns the inbound throttle policy. |
int |
getIncomingClientFrequency()
Returns the incoming client frequency (max-client-frequency). |
int |
getIncomingDestinationFrequency()
Returns the incoming destination frequency (max-frequency). |
int |
getOutboundPolicy()
Returns the outbound throttle policy. |
int |
getOutgoingClientFrequency()
Returns the outgoing client frequency (max-client-frequency). |
int |
getOutgoingDestinationFrequency()
Returns the outgoing destination frequency (max-frequency). |
boolean |
isClientThrottleEnabled()
Returns whether client throttling is enabled. |
boolean |
isDestinationThrottleEnabled()
Returns whether destination throttling is enabled. |
static int |
parsePolicy(String policy)
Parses the throttle policy out of the given string. |
void |
setDestinationName(String destinationName)
Sets the destination name for ThrottleSettings. |
void |
setInboundPolicy(int inPolicy)
Sets inbound throttle policy. |
void |
setIncomingClientFrequency(int n)
Sets the incoming client frequency (max-client-frequency). |
void |
setIncomingDestinationFrequency(int n)
Sets the incoming destination frequency (max-frequency). |
void |
setOutboundPolicy(int outPolicy)
Sets the outbound throttle policy. |
void |
setOutgoingClientFrequency(int n)
Sets the outgoing client frequency (max-client-frequency). |
void |
setOutgoingDestinationFrequency(int n)
Sets the outgoing destination frequency (max-frequency). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int POLICY_NONE
public static final int POLICY_ERROR
public static final int POLICY_IGNORE
public static final int POLICY_REPLACE
| Constructor Detail |
|---|
public ThrottleSettings()
ThrottleSettings instance with default settings.
| Method Detail |
|---|
public static int parsePolicy(String policy)
policy - The string policy to parse.public boolean isClientThrottleEnabled()
true if the incoming client frequency or outgoing
client frequency is greater than zero; otherwise false.public boolean isDestinationThrottleEnabled()
true if incoming destination frequency or outgoing
destination frequency is greater than zero; otherwise false.public int getInboundPolicy()
public void setInboundPolicy(int inPolicy)
inPolicy - The inbound policy.public int getOutboundPolicy()
public void setOutboundPolicy(int outPolicy)
outPolicy - The outbound policy.public String getDestinationName()
ThrottleSettings.
ThrottleSettings.public void setDestinationName(String destinationName)
ThrottleSettings. This is set
automatically when NetworkSettings is assigned to a destination.
destinationName - The destination name.public int getIncomingClientFrequency()
public void setIncomingClientFrequency(int n)
n - The incoming client frequency.public int getIncomingDestinationFrequency()
public void setIncomingDestinationFrequency(int n)
n - The incoming destination frequency.public int getOutgoingClientFrequency()
public void setOutgoingClientFrequency(int n)
n - The outgoing client frequency.public int getOutgoingDestinationFrequency()
public void setOutgoingDestinationFrequency(int n)
n - The outgoing destination frequency.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/config/ThrottleSettings.html