io.replay.framework
Class Config

java.lang.Object
  extended by io.replay.framework.Config

public class Config
extends java.lang.Object

Client configuration


Constructor Summary
Config()
          Creates a default options
Config(boolean debugModeEnabled, boolean enabled, java.lang.String apiKey, int dispatchInterval, int flushAt, int maxQueue)
          Creates an option with the provided settings
 
Method Summary
 void applyConstraints()
           
 java.lang.String getApiKey()
           
 int getDispatchInterval()
           
 int getFlushAt()
           
 int getMaxQueue()
           
 boolean isDebug()
           
 boolean isEnabled()
           
 Config setApiKey(java.lang.String apiKey)
           
 Config setDebug(boolean debug)
           
 Config setDispatchInterval(int dispatchInterval)
          Set the timer for this many MS
 Config setEnabled(boolean enabled)
           
 Config setFlushAt(int flushAt)
           
 Config setMaxQueue(int maxQueue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config()
Creates a default options


Config

public Config(boolean debugModeEnabled,
              boolean enabled,
              java.lang.String apiKey,
              int dispatchInterval,
              int flushAt,
              int maxQueue)
Creates an option with the provided settings

Method Detail

isDebug

public boolean isDebug()

setDebug

public Config setDebug(boolean debug)

isEnabled

public boolean isEnabled()

setEnabled

public Config setEnabled(boolean enabled)

getApiKey

public java.lang.String getApiKey()

setApiKey

public Config setApiKey(java.lang.String apiKey)

getDispatchInterval

public int getDispatchInterval()

setDispatchInterval

public Config setDispatchInterval(int dispatchInterval)
Set the timer for this many MS

Parameters:
dispatchInterval -
Returns:

getFlushAt

public int getFlushAt()

setFlushAt

public Config setFlushAt(int flushAt)

getMaxQueue

public int getMaxQueue()

setMaxQueue

public Config setMaxQueue(int maxQueue)

applyConstraints

public void applyConstraints()