flex.messaging.config
Class ServerSettings

java.lang.Object
  extended by flex.messaging.config.ServerSettings

public class ServerSettings
extends Object

Server settings for a message destination.


Constructor Summary
ServerSettings()
          Creates a default ServerSettings instance.
 
Method Summary
 boolean getAllowSubtopics()
          Returns allow-subtopics property.
 int getMaxCacheSize()
          Returns the max number of messages to maintain in memory cache.
 long getMessageTTL()
          Returns the message-time-to-live property.
 String getSubtopicSeparator()
          Returns the subtopic-separator property.
 boolean isBroadcastRoutingMode()
          Returns cluster-message-routing property.
 boolean isDurable()
          Returns whether destination is durable.
 void setAllowSubtopics(boolean value)
          Sets allow-subtopics property.
 void setBroadcastRoutingMode(String routingMode)
          Sets the cluster-message-routing property.
 void setDurable(boolean durable)
          Sets whether destination is durable.
 void setMaxCacheSize(int size)
          Sets the max number of messages to maintain in memory cache.
 void setMessageTTL(long ttl)
          Sets the message-time-to-live property.
 void setSubtopicSeparator(String value)
          Sets the subtopic-separator property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerSettings

public ServerSettings()
Creates a default ServerSettings instance.

Method Detail

getAllowSubtopics

public boolean getAllowSubtopics()
Returns allow-subtopics property.

Returns:
a boolean specifying whether or not the server has the allow-subtopics property.

setAllowSubtopics

public void setAllowSubtopics(boolean value)
Sets allow-subtopics property.

Parameters:
value - The value for allow-subtopics property.

isBroadcastRoutingMode

public boolean isBroadcastRoutingMode()
Returns cluster-message-routing property.

Returns:
a boolean specifying whether or not the server has the cluster-message-routing property.

setBroadcastRoutingMode

public void setBroadcastRoutingMode(String routingMode)
Sets the cluster-message-routing property.

Parameters:
routingMode - server-to-server(default) or broadcast.

getMaxCacheSize

public int getMaxCacheSize()
Returns the max number of messages to maintain in memory cache.

Returns:
the max number of messages to maintain in memory cache.

setMaxCacheSize

public void setMaxCacheSize(int size)
Sets the max number of messages to maintain in memory cache. Default value is zero.

Parameters:
size - The value for max-cache-size property.

getMessageTTL

public long getMessageTTL()
Returns the message-time-to-live property.

Returns:
the message-time-to-live property.

setMessageTTL

public void setMessageTTL(long ttl)
Sets the message-time-to-live property. Default value is -1.

Parameters:
ttl - The value for message-time-to-live property.

isDurable

public boolean isDurable()
Returns whether destination is durable.

Returns:
true if destination is durable; otherwise false.

setDurable

public void setDurable(boolean durable)
Sets whether destination is durable. Default value is false.

Parameters:
durable - The value for durable property.

getSubtopicSeparator

public String getSubtopicSeparator()
Returns the subtopic-separator property.

Returns:
the subtopic-separator property.

setSubtopicSeparator

public void setSubtopicSeparator(String value)
Sets the subtopic-separator property. Optional; the default value is period.

Parameters:
value - The value for subtopic-separator property.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

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/ServerSettings.html