public static enum Durability.Kind extends Enum<Durability.Kind>
Enum Constant and Description |
---|
PERSISTENT
Data is kept on permanent storage, so that they can outlive a
system session.
|
TRANSIENT
The Service will attempt to keep some samples so that they can be
delivered to any potential late-joining
DataReader . |
TRANSIENT_LOCAL
The Service will attempt to keep some samples so that they can be
delivered to any potential late-joining
DataReader . |
VOLATILE
The Service does not need to keep any samples of data instances on
behalf of any
DataReader that is not known by the
DataWriter at the time the instance is written. |
Modifier and Type | Method and Description |
---|---|
static Durability.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Durability.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Durability.Kind VOLATILE
DataReader
that is not known by the
DataWriter
at the time the instance is written. In other
words the Service will only attempt to provide the data to
existing subscribers. This is the default kind.public static final Durability.Kind TRANSIENT_LOCAL
DataReader
. Which
particular samples are kept depends on other QoS such as
History
and ResourceLimits
.
For TRANSIENT_LOCAL, the service is only required to keep the data
in the memory of the DataWriter
that wrote the data and
the data is not required to survive the DataWriter.public static final Durability.Kind TRANSIENT
DataReader
. Which
particular samples are kept depends on other QoS such as
History
and ResourceLimits
.
For TRANSIENT, the service is only required to keep the data in
memory and not in permanent storage; but the data is not tied to
the life cycle of the DataWriter
and will, in general,
survive it. Support for TRANSIENT kind is optional.public static final Durability.Kind PERSISTENT
public static Durability.Kind[] values()
for (Durability.Kind c : Durability.Kind.values()) System.out.println(c);
public static Durability.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2014. All rights reserved.