public abstract class SpringStreamsBase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplication()
Returns the application name.
|
java.util.Map<java.lang.String,java.lang.String> |
getEncryptedIdentifiers()
Returns the encrypted (md5) and truncated mobile identifiers.
|
int |
getTimeout()
Returns the timeout in seconds.
|
java.lang.String |
getVersion(boolean isCasting)
Returns the library version.
|
boolean |
isDebug()
Returns
true if debug messages is activated
otherwise false . |
boolean |
isOfflineMode()
Returns
true if offline mode is on otherwise false . |
boolean |
isTracking()
Returns the
true if the library
is active and send requests to the measurement system. |
void |
removeDebuggerObserver(java.util.Observer observer)
remove the specific Observer associated with KMA library debugging Observable.
|
void |
removeDebuggerObservers()
remove all the Observers associated with KMA library debugging Observable.
|
void |
setDebug(boolean debug)
If set to
true the library
logs some internal actions. |
void |
setDebuggerObserver(java.util.Observer observer)
setDebuggerObserver, implement your own observer to track on the http request from KMA library.
|
void |
setOfflineMode(boolean offlineMode)
Switch offline mode on or off.
|
void |
setTimeout(int seconds)
Set the timeout in seconds.
|
void |
setTracking(boolean tracking)
If set to
false the library
will not send any requests to the
measurement system. |
void |
unload()
External callback, synchronizes all open streams and closes them.
|
public java.util.Map<java.lang.String,java.lang.String> getEncryptedIdentifiers()
public void setOfflineMode(boolean offlineMode)
offlineMode
- the offlineMode to setpublic boolean isOfflineMode()
true
if offline mode is on otherwise false
.public java.lang.String getApplication()
public int getTimeout()
public void setTimeout(int seconds)
seconds
- The timeout in seconds.public java.lang.String getVersion(boolean isCasting)
isCasting
- Indicates if video stream is casted to chromecast device.public void setTracking(boolean tracking)
false
the library
will not send any requests to the
measurement system.tracking
- True if tracking should be enabled and false if not.public boolean isTracking()
true
if the library
is active and send requests to the measurement system.public void setDebug(boolean debug)
true
the library
logs some internal actions. Use this
to check the implementation.debug
- Enables or disables debugging feature.public boolean isDebug()
true
if debug messages is activated
otherwise false
.public void unload()
public void setDebuggerObserver(java.util.Observer observer)
observer
- - Your Observerpublic void removeDebuggerObservers()
public void removeDebuggerObserver(java.util.Observer observer)
observer
- - Your Observer