io.sarl.sre.janus.services.probing.probes
Class LongFieldProbe
All Superinterfaces:
Probe<T>
class LongFieldProbe
extends AbstractFieldProbe<T>
Probe implementation is linked to a primitive long field, or a field that could be assimilated to a long primitive. A probe is thread-safe. This probe make a buffer of the values. In order to be updated, the sync() function must be invoked. Then, the new value is read from the associated field, and the probe listeners are notified.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Since:
0.12
Property Summary
Constructor Summary
Constructor and description
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
Constructor.
Action Summary
Modifier and type Action and description
protected boolean areEqualValues(Long,Long)
protected java.lang.Object prepareFieldWriting(Long,Class<T>,Object)
protected java.lang.Long toT(Object,Class<T>)
Constructor Details
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
new(IProbeReleaseListener,String,URI,FieldAccess,Provider<T>)
Constructor.
Parameters:
manager - the creator of this probe, and its manager.
name - the name of the probe
uri - the UI of the field.
field - the accessor to the probed field.
factories - the provider of factories tool.
Action Details
areEqualValues(Long,Long)
protected def areEqualValues(Long,Long) : boolean
prepareFieldWriting(Long,Class<T>,Object)
protected def prepareFieldWriting(Long,Class<T>,Object) : java.lang.Object
toT(Object,Class<T>)
protected def toT(Object,Class<T>) : java.lang.Long