public static enum History.Kind extends Enum<History.Kind>
Enum Constant and Description |
---|
KEEP_ALL
On the publishing side, the Service will attempt to keep all
samples (representing each value written) of each instance of data
(identified by its key) managed by the
DataWriter until
they can be delivered to all subscribers. |
KEEP_LAST
On the publishing side, the Service will only attempt to keep the
most recent "depth" samples (
History.getDepth() )
of each instance of data (identified by its key) managed by the
DataWriter . |
Modifier and Type | Method and Description |
---|---|
static History.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static History.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final History.Kind KEEP_LAST
History.getDepth()
)
of each instance of data (identified by its key) managed by the
DataWriter
. On the subscribing side, the DataReader will
only attempt to keep the most recent "depth" samples received for
each instance (identified by its key) until the application
"takes" them via DataReader.take()
. KEEP_LAST is the
default kind. The default value of depth is 1. If a value other
than 1 is specified, it must be consistent with the settings of
the ResourceLimits
.public static final History.Kind KEEP_ALL
DataWriter
until
they can be delivered to all subscribers. On the subscribing side,
the Service will attempt to keep all samples of each instance of
data (identified by its key) managed by the DataReader
.
These samples are kept until the application "takes" them from the
Service via DataReader.take()
. The setting of depth has no
effect. Its implied value is
ResourceLimits.LENGTH_UNLIMITED
.public static History.Kind[] values()
for (History.Kind c : History.Kind.values()) System.out.println(c);
public static History.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.