public class WatchMode extends Object
Modifier and Type | Field and Description |
---|---|
static WatchMode |
ADD
This is the WatchMode that adds watching for the specified Watch.
|
static WatchMode |
OFF
This is the WatchMode that disables watching.
|
static WatchMode |
ON
This is the WatchMode that enables watching.
|
static WatchMode |
REMOVE
This is the WatchMode that removes watching for the specified Watch.
|
Modifier and Type | Method and Description |
---|---|
CommandRequest |
getCommand()
Returns the CommandRequest that is used when executing the WatchCommand
with this WatchMode.
|
boolean |
isWatchOptionAllowed()
Indicated, whether a non-null watch-option is allowed in the
WatchCommand.
|
String |
toString()
Returns the name of this WatchMode ("on", "off", "add", "remove").
|
public static final WatchMode ON
public static final WatchMode OFF
public static final WatchMode ADD
public static final WatchMode REMOVE
public CommandRequest getCommand()
public boolean isWatchOptionAllowed()
Copyright © 2016. All rights reserved.