flex.messaging.config
Class ServerSettings

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

public class ServerSettings
extends Object


Constructor Summary
ServerSettings()
          Creates a default ServerSettings instance.
 
Method Summary
 boolean getAllowSubtopics()
          Returns allow-subtopics property.
 int getBatchWriteSize()
          Returns the batch-write-size property.
 String getDurableStoreManager()
          Returns the durable-store-manager property.
 String getFileStoreRoot()
          Returns file-store-root property.
 int getMaxCacheSize()
          Returns the max number of messages to maintain in memory cache.
 String getMaxFileSize()
          Returns max-file-size property.
 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 setBatchWriteSize(int size)
          Sets the batch-write-size property which is the number of durable message files to write in each batch.
 void setBroadcastRoutingMode(String routingMode)
          Sets the cluster-message-routing property.
 void setDurable(boolean durable)
          Sets whether destination is durable.
 void setDurableStoreManager(String type)
          Sets the durable-store-manager property.
 void setFileStoreRoot(String root)
          Sets file-store-root property.
 void setMaxCacheSize(int size)
          Sets the max number of messages to maintain in memory cache.
 void setMaxFileSize(String size)
          Sets max-file-size property which is maximum file size in kilobytes for durable message files.
 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:

setAllowSubtopics

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

Parameters:
value -

isBroadcastRoutingMode

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

Returns:

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:

setMaxCacheSize

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

Parameters:
size -

getMessageTTL

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

Returns:

setMessageTTL

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

Parameters:
ttl -

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 -

getDurableStoreManager

public String getDurableStoreManager()
Returns the durable-store-manager property.

Returns:

setDurableStoreManager

public void setDurableStoreManager(String type)
Sets the durable-store-manager property. Default value is flex.messaging.durability.FileStoreManager.

Parameters:
type -

getFileStoreRoot

public String getFileStoreRoot()
Returns file-store-root property.

Returns:

setFileStoreRoot

public void setFileStoreRoot(String root)
Sets file-store-root property.

Parameters:
root -

getMaxFileSize

public String getMaxFileSize()
Returns max-file-size property.

Returns:

setMaxFileSize

public void setMaxFileSize(String size)
Sets max-file-size property which is maximum file size in kilobytes for durable message files. Default value is 200K.

Parameters:
size -

getBatchWriteSize

public int getBatchWriteSize()
Returns the batch-write-size property.

Returns:

setBatchWriteSize

public void setBatchWriteSize(int size)
Sets the batch-write-size property which is the number of durable message files to write in each batch. Default value is zero.

Parameters:
size -

getSubtopicSeparator

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

Returns:

setSubtopicSeparator

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

Parameters:
value -


Copyright © 2007 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/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/config/ServerSettings.html