Class ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward>
KNet implementation of ProcessorContext<KForward, VForward>
public class ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward> : IKNetInnerReference<ProcessorContext<TJVMKForward, TJVMVForward>>, IDisposable
Type Parameters
KForwardVForwardTJVMKForwardThe JVM type of
KForwardTJVMVForwardThe JVM type of
VForward
- Inheritance
-
ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward>
- Implements
-
IKNetInnerReference<ProcessorContext<TJVMKForward, TJVMVForward>>
Properties
AppConfigs
public Map<String, object> AppConfigs { get; }
Property Value
ApplicationId
public string ApplicationId { get; }
Property Value
CurrentStreamDateTime
public DateTime CurrentStreamDateTime { get; }
Property Value
CurrentStreamTimeMs
public long CurrentStreamTimeMs { get; }
Property Value
CurrentSystemDateTime
public DateTime CurrentSystemDateTime { get; }
Property Value
CurrentSystemTimeMs
public long CurrentSystemTimeMs { get; }
Property Value
InnerReference
The underlying inner reference used from KNet object instance
public ProcessorContext<TJVMKForward, TJVMVForward> InnerReference { get; }
Property Value
- ProcessorContext<TJVMKForward, TJVMVForward>
KeySerde
public Serde<object> KeySerde { get; }
Property Value
Metrics
public StreamsMetrics Metrics { get; }
Property Value
RecordMetadata
public RecordMetadata RecordMetadata { get; }
Property Value
StateDir
public File StateDir { get; }
Property Value
TaskId
public TaskId TaskId { get; }
Property Value
ValueSerde
public Serde<object> ValueSerde { get; }
Property Value
Methods
AppConfigsWithPrefix(string)
public Map<String, object> AppConfigsWithPrefix(string arg0)
Parameters
Returns
CheckDisposed()
Test if this instance was disposed
protected void CheckDisposed()
Exceptions
- ObjectDisposedException
When this instance was disposed
Commit()
public void Commit()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Implements the pattern described in https://learn.microsoft.com/en-en/dotnet/standard/garbage-collection/implementing-dispose
protected virtual void Dispose(bool disposing)
Parameters
disposingboolThe disposing parameter is a bool that indicates whether the method call comes from a Dispose() method (its value is true) or from a finalizer (its value is false)
Forward<K, V, TJVMK, TJVMV>(Record<K, V, TJVMK, TJVMV>)
public void Forward<K, V, TJVMK, TJVMV>(Record<K, V, TJVMK, TJVMV> arg0) where K : KForward where V : VForward where TJVMK : TJVMKForward where TJVMV : TJVMVForward
Parameters
Type Parameters
KKForwardVVForwardTJVMKThe JVM type of
KTJVMVThe JVM type of
V
Forward<K, V, TJVMK, TJVMV>(Record<K, V, TJVMK, TJVMV>, string)
public void Forward<K, V, TJVMK, TJVMV>(Record<K, V, TJVMK, TJVMV> arg0, string arg1) where K : KForward where V : VForward where TJVMK : TJVMKForward where TJVMV : TJVMVForward
Parameters
Type Parameters
KKForwardVVForwardTJVMKThe JVM type of
KTJVMVThe JVM type of
V
GetStateStore<S>(string)
public S GetStateStore<S>(string arg0) where S : IStateStore
Parameters
Returns
- S
S
Type Parameters
Schedule(Duration, PunctuationType, Punctuator)
public Cancellable Schedule(Duration arg0, PunctuationType arg1, Punctuator arg2)
Parameters
arg0Durationarg1PunctuationTypearg2Punctuator
Returns
Operators
implicit operator ProcessorContext<TJVMKForward, TJVMVForward>(ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward>)
Converter from ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward> to ProcessorContext<KForward, VForward>
public static implicit operator ProcessorContext<TJVMKForward, TJVMVForward>(ProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward> t)
Parameters
tProcessorContext<KForward, VForward, TJVMKForward, TJVMVForward>
Returns
- ProcessorContext<TJVMKForward, TJVMVForward>