Class ToggleableFloatSubscriber
java.lang.Object
dev.doglog.internal.tunable.entry.ToggleableFloatSubscriber
- All Implemented Interfaces:
FloatSubscriber, PubSub, Subscriber, FloatSupplier, AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionToggleableFloatSubscriber(FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FloatSubscriber
getAsFloat
-
Constructor Details
-
ToggleableFloatSubscriber
public ToggleableFloatSubscriber(FloatSubscriber subscriber, float defaultValue, BooleanSupplier useNt)
-
-
Method Details
-
getTopic
- Specified by:
getTopicin interfaceFloatSubscriber- Specified by:
getTopicin interfacePubSub
-
get
public float get()- Specified by:
getin interfaceFloatSubscriber
-
get
public float get(float defaultValue) - Specified by:
getin interfaceFloatSubscriber
-
getAtomic
- Specified by:
getAtomicin interfaceFloatSubscriber
-
getAtomic
- Specified by:
getAtomicin interfaceFloatSubscriber
-
readQueue
- Specified by:
readQueuein interfaceFloatSubscriber
-
readQueueValues
public float[] readQueueValues()- Specified by:
readQueueValuesin interfaceFloatSubscriber
-
exists
public boolean exists()- Specified by:
existsin interfaceSubscriber
-
getLastChange
public long getLastChange()- Specified by:
getLastChangein interfaceSubscriber
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePubSub
-
isValid
-
getHandle
-