public enum DOFInterestLevel extends java.lang.Enum<DOFInterestLevel>
DOFSystem.beginInterest(org.opendof.core.oal.DOFObjectID, org.opendof.core.oal.DOFInterestLevel)
,
DOFSystem.beginQuery(org.opendof.core.oal.DOFObjectID, org.opendof.core.oal.DOFInterfaceID, org.opendof.core.oal.DOFSystem.QueryOperationListener)
,
DOFSystem.waitProvider(org.opendof.core.oal.DOFInterfaceID, int)
,
DOFOperation.Define.waitInterface(int)
,
DOFObject.advertise(org.opendof.core.oal.DOFInterfaceID)
Enum Constant and Description |
---|
ACTIVATE
Indicates "activate" level of interest -- a superset of
WATCH level interest. |
CONNECT
Indicates "connect" level of interest -- a superset of
ACTIVATE level interest. |
WATCH
Indicates "watch" level of interest -- the lowest or most basic level of interest.
|
Modifier and Type | Method and Description |
---|---|
static DOFInterestLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DOFInterestLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DOFInterestLevel WATCH
ACTIVATE
or CONNECT
for this), but
causes notification only for interfaces and objects that are already being provided. Connections should not
remain open only for WATCH.public static final DOFInterestLevel ACTIVATE
WATCH
level interest. In addition to the
behavior of WATCH
, this level indicates that providers should begin providing objects and interfaces
even if they are not currently provided.
When received by a provider it indicates that the provider should, to the extent possible, begin providing and
continue to provide interfaces that match the request. This could extend to keeping existing connections open,
but will not cause new connections to be established (use CONNECT
if you want
new connections to be established).public static final DOFInterestLevel CONNECT
ACTIVATE
level interest. In addition to the
behavior of ACTIVATE
, this level indicates that a streaming connection to the provider is desired,
if possible. If a streaming connection to the provider is desired, the sender should be running a server that
can accept streaming connections.
CONNECT interest level is not valid with either the BROADCAST Object ID
or the Wildcard Interface ID.public static DOFInterestLevel[] values()
for (DOFInterestLevel c : DOFInterestLevel.values()) System.out.println(c);
public static DOFInterestLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null