Constructor and Description |
---|
Sample(Guid writerGuid,
Marshaller<T> m,
long seqNum,
long timestamp,
ChangeKind kind,
T obj)
This constructor is used when adding Sample to UDDSWriterCache.
|
Sample(Guid writerGuid,
Marshaller<T> m,
long seqNum,
long timestamp,
long sourceTimestamp,
Data data)
This constructor is used when adding Sample to UDDSReaderCache.
|
Sample(long seqNum)
This constructor is used to create a Sample, that has no content.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
CoherentSet |
getCoherentSet()
Return CoherentSet attribute of this Sample, if it exists.
|
T |
getData()
Gets the data associated with this Sample.
|
KeyHash |
getKey()
Gets the key of this Sample.
|
ChangeKind |
getKind()
Get the ChangeKind of this Sample.
|
Object |
getProperty(String key) |
long |
getSequenceNumber()
Gets the sequence number of this Sample.
|
long |
getSourceTimeStamp()
Gets the sourceTimestamp associated with this Sample.
|
long |
getTimestamp()
Gets the timestamp associated with this Sample.
|
Guid |
getWriterGuid()
Gets the Guid of the writer that wrote this Sample originally.
|
boolean |
isDisposed()
Gets the value of disposeFlag of StatusInfo parameter.
|
boolean |
isUnregistered()
Gets the value of unregisterFlag of StatusInfo parameter.
|
void |
setCoherentSet(CoherentSet cs)
Sets a CoherentSet attribute for this Sample.
|
void |
setProperty(String key,
Object value) |
String |
toString() |
public Sample(long seqNum)
seqNum
- Sequence numberpublic Sample(Guid writerGuid, Marshaller<T> m, long seqNum, long timestamp, ChangeKind kind, T obj)
writerGuid
- Guid of the writerm
- Marshaller usedseqNum
- Sequence numbertimestamp
- Timestamp of this samplekind
- ChangeKindobj
- Object of type Tpublic Sample(Guid writerGuid, Marshaller<T> m, long seqNum, long timestamp, long sourceTimestamp, Data data)
writerGuid
- Guid of the writerm
- Marshaller usedseqNum
- Sequence numbertimestamp
- Timestamp of samplesourceTimestamp
- source timestamp of sampledata
- Data, whose payload is decoded into Object of type Tpublic T getData()
public long getTimestamp()
public long getSourceTimeStamp()
public boolean isDisposed()
StatusInfo
public boolean isUnregistered()
StatusInfo
public Guid getWriterGuid()
public long getSequenceNumber()
public KeyHash getKey()
public ChangeKind getKind()
public CoherentSet getCoherentSet()
public void setCoherentSet(CoherentSet cs)
cs
- CoherentSet to setpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2016. All rights reserved.