public interface TibProperties
Programs pass properties objects to FTL object creation calls.
Customers do not implement this interface.
Each property name includes an indication of the required datatype for the value.
For example, EventQueue.PROPERTY_INT_DISCARD_POLICY
requires an integer value; Realm.PROPERTY_STRING_USERNAME
requires a string value.
Set Method Semantics:
name is not yet in the properties object, this
call adds the name and value pair. name is already in the properties object, this call
changes its value. FTL.createProperties| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the properties object.
|
boolean |
exists(java.lang.String name)
Check whether a property exists.
|
boolean |
getBoolean(java.lang.String name)
Get a boolean property.
|
double |
getDouble(java.lang.String name)
Get a double integer property.
|
int |
getInt(java.lang.String name)
Get an integer property.
|
long |
getLong(java.lang.String name)
Get a long integer property.
|
Message |
getMessage(java.lang.String name)
Get a Message property.
|
java.lang.String |
getString(java.lang.String name)
Get a string property.
|
boolean |
remove(java.lang.String name)
Remove the property
name from properties. |
void |
set(java.lang.String name,
boolean value)
Set a boolean property.
|
void |
set(java.lang.String name,
double value)
Set a double property.
|
void |
set(java.lang.String name,
int value)
Set an integer property.
|
void |
set(java.lang.String name,
long value)
Set a long integer property.
|
void |
set(java.lang.String name,
Message value)
Set a Message property.
|
void |
set(java.lang.String name,
java.lang.String value)
Set a string property.
|
void |
setOAuth2TokenFetchHandler(OAuth2TokenFetchHandler handler)
set the oauth2 token fetch handler.
|
void set(java.lang.String name,
boolean value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionvoid set(java.lang.String name,
java.lang.String value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionvoid set(java.lang.String name,
Message value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionvoid set(java.lang.String name,
int value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionvoid set(java.lang.String name,
long value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionvoid set(java.lang.String name,
double value)
throws FTLException
name - The method sets this property.value - The method sets the property to this value.FTLExceptionboolean getBoolean(java.lang.String name)
throws FTLException
Return the boolean value of property name.
name - The method gets the value of this property.FTLExceptionjava.lang.String getString(java.lang.String name)
throws FTLException
Return the string value of property name.
name - The method gets the value of this property.FTLExceptionMessage getMessage(java.lang.String name) throws FTLException
Return the Message value of property name.
name - The method gets the value of this property.FTLExceptionint getInt(java.lang.String name)
throws FTLException
Return the integer value of property name.
name - The method gets the value of this property.FTLExceptionlong getLong(java.lang.String name)
throws FTLException
Return the long integer value of property name.
name - The method gets the value of this property.FTLExceptiondouble getDouble(java.lang.String name)
throws FTLException
Return the double integer value of property name.
name - The method gets the value of this property.FTLExceptionboolean remove(java.lang.String name)
throws FTLException
name from properties.name - The method removes this property.FTLExceptionboolean exists(java.lang.String name)
name - The method checks for this property.void destroy()
An application can destroy a properties object to reclaim its resources. Destroying a properties object does not invalidate objects created with it. (For example, the queue creation call copies property values into the new queue.)
void setOAuth2TokenFetchHandler(OAuth2TokenFetchHandler handler) throws FTLException
FTLException