Enum Class PublishFlag
- All Implemented Interfaces:
Serializable
,Comparable<PublishFlag>
,java.lang.constant.Constable
TransformerPublisher
.
Default flags are STORE_IN_CACHE
and
PUBLISH_TO_PEERS
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMaintain the feedtime for the update.Option to use if none of the flags should be set for an object or update.Do not save the object to disk when the Transformer is shutdown.Publish the object/update to the DataSource peers.Do not send the object/update to other Transformer modules.Store the object/update within the Transformer cache. -
Method Summary
Modifier and TypeMethodDescriptionint
static PublishFlag
Returns the enum constant of this class with the specified name.static PublishFlag[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_FLAGS
Option to use if none of the flags should be set for an object or update.
-
STORE_IN_CACHE
Store the object/update within the Transformer cache. This flag can be used for both objects and updates.
-
PUBLISH_TO_PEERS
Publish the object/update to the DataSource peers. This flag can be used for both objects and updates.
-
NO_PERSISTENCE
Do not save the object to disk when the Transformer is shutdown. If the object is not being cached (i.e. the STORE_IN_CACHE flag is not set) then it cannot be saved to disk, even if this flag is omitted.
This flag will only be used by
DataCache.put
. -
SILENT_SEND
Do not send the object/update to other Transformer modules. This flag can be used for both objects and updates.
-
MAINTAIN_TIMESTAMP
Maintain the feedtime for the update. The feedtime is the time that the last update was received by the Transformer core. If this flag is not set, then the feedtime will be changed to the time that the update is sent by the Transformer module to the core.
This flag will only be used by
TransformerData.send
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFlagCode
public int getFlagCode()
-