Interface DispatcherContainer<T>
- Type Parameters:
T- specifies the type of the container.
- All Known Implementing Classes:
LiveScoutDispatcherContainer
public interface DispatcherContainer<T>
Represents a container used by the
DisruptorDispatcher used to store un-processed messages-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the content of the currentDispatcherContainer.voidCopies the content of the passedDispatcherContainerto the current one.booleanisValid()Checks if is container valid
-
Method Details
-
isValid
boolean isValid()Checks if is container valid- Returns:
- treu if valid
-
copy
Copies the content of the passedDispatcherContainerto the current one.- Parameters:
other- TheDispatcherContainerwhose content will be copied to the current one.- Throws:
IllegalArgumentException- theotheris a null reference.
-
clear
void clear()Clears the content of the currentDispatcherContainer.
-