SpaceFilterConfigThe SpaceFilterConfig is used to start a space integrated with a space filter.
A filter is integrated into a space upon creation of that space, and each space filter that integrates with a space needs a SpaceFilterConfig instance that defines it. The following code starts an embedded space, with a space filter that implements ISpaceFilter: SpaceFilterConfig mySpaceFilterConfig = new SpaceFilterConfig(); mySpaceFilterConfig.FilterOperations = new List<FilterOperations>(new FilterOperation[]{ FilterOperation.BeforeWrite }); mySpaceFilterConfig.Filter = new MySpaceFilter(); SpaceConfig spaceConfig = new SpaceConfig(); spaceConfig.SpaceFiltersConfig = new List<SpaceFilterConfig>(); spaceConfig.SpaceFiltersConfig.Add(mySpaceFilterConfig); ISpaceProxy embeddedSpace = GigaSpacesFactory.FindSpace("/./mySpace", spaceConfig); FilterOperation and its Relevance to PriorityFilters are grouped by priorities, and activated by a specific operation. Filters with higher priorities are activated closer to the hook point. This means that:
For example, if two filters are activated at BeforeWrite and AfterWrite operation, the filter with the higher priority is activated last at the BeforeWrite operation, and first at the AfterWrite operation. Doing that keeps this filter activation closer to the actual space operation, hence, closer to the hook point. |
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |