@Documented
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface DsonOutput
As an example, to include a field only in data persisted to disk, the following annotation might be used:
@DsonOutput(Output.PERSIST)
@JsonProperty("diskTimestamp")
private long diskTimestamp;
To exclude data from being included in a hash, the following annotation
could be used:
@DsonOutput(value = Output.HASH, include = false)
@JsonProperty("signature")
private byte[] signature;
| Modifier and Type | Required Element and Description |
|---|---|
DsonOutput.Output[] |
value
The serialization output modes for which this field should be
included or excluded, depending on the value of
include(). |
public abstract DsonOutput.Output[] value
include().include()