-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support IEventProcessorSequenceAware in ValueBatchEventProcessor
- Loading branch information
Showing
8 changed files
with
90 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Disruptor | ||
{ | ||
/// <summary> | ||
/// Implement this interface in your event handler to obtain the <see cref="IEventProcessor"/> sequence. | ||
/// | ||
/// Used by the <see cref="IEventProcessor"/> to set a callback allowing the event handler to notify | ||
/// when it has finished consuming an event if this happens after the OnEvent call. | ||
/// | ||
/// Typically this would be used when the handler is performing some sort of batching operation such as writing to an IO | ||
/// device; after the operation has completed, the implementation should set <see cref="Sequence.Value"/> to update the | ||
/// sequence and allow other processes that are dependent on this handler to progress. | ||
/// </summary> | ||
public interface IEventProcessorSequenceAware | ||
{ | ||
/// <summary> | ||
/// Call by the <see cref="IEventProcessor"/> to setup the callback. | ||
/// </summary> | ||
/// <param name="sequenceCallback">callback on which to notify the <see cref="IEventProcessor"/> that the sequence has progressed.</param> | ||
void SetSequenceCallback(ISequence sequenceCallback); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace Disruptor | ||
{ | ||
/// <summary> | ||
/// Implement this interface in your <see cref="IWorkHandler{T}"/> to obtain the <see cref="IEventReleaser"/>. | ||
/// </summary> | ||
public interface IEventReleaseAware | ||
{ | ||
void SetEventReleaser(IEventReleaser eventReleaser); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters