Class SamplerInstance
java.lang.Object
ca.spottedleaf.sampler.SamplerInstance
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSamplerInstance.RecordedEvent<T extends Record> -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()static SamplerInstancecreate(File file, long intervalNS, Predicate<Thread> threadSelector, boolean listenForEvents, long treeFlags) static List<SamplerInstance> getAll()static SamplerInstancegetById(long id) longgetId()doubleintintintstatic <T extends Record>
voidpushEvent(EventRegistry.RegisteredEvent<T> event, T value) voidrun()booleansetEventListen(boolean on) voidsetNextIntervalNS(long intervalNS)
-
Method Details
-
getById
-
getAll
-
create
public static SamplerInstance create(File file, long intervalNS, Predicate<Thread> threadSelector, boolean listenForEvents, long treeFlags) throws IOException - Throws:
IOException
-
pushEvent
-
getId
public long getId() -
cancel
public boolean cancel() -
setEventListen
public boolean setEventListen(boolean on) -
getSampleNodeCount
public int getSampleNodeCount() -
getStackCount
public int getStackCount() -
getStringCount
public int getStringCount() -
getLast5sRate
public double getLast5sRate() -
setNextIntervalNS
public void setNextIntervalNS(long intervalNS) -
run
-