Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IProcessor.cs
1using System.Threading.Tasks;
2
3namespace Waher.Persistence
4{
8 public interface IProcessor<T>
9 {
13 bool IsAsynchronous { get; }
14
20 bool Process(T Object);
21
27 Task<bool> ProcessAsync(T Object);
28
33 bool Flush();
34
39 Task<bool> FlushAsync();
40 }
41}
Interface for processors of objects.
Definition: IProcessor.cs:9
bool Process(T Object)
Processes an object synchronously.
bool Flush()
Called at the end of processing, to allow for flushing of buffers, etc.
bool IsAsynchronous
If the processor operates asynchronously.
Definition: IProcessor.cs:13
Task< bool > FlushAsync()
Called at the end of processing, to allow for flushing of buffers, etc.
Task< bool > ProcessAsync(T Object)
Processes an object asynchronously.