//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void forceShouldNotCheckpointTreeOnReadOnlyScanStore() public virtual void ForceShouldNotCheckpointTreeOnReadOnlyScanStore() { MutableBoolean ioLimiterCalled = new MutableBoolean(); CreateAndStartReadOnly(); _store.force((previousStamp, recentlyCompletedIOs, flushable) => { ioLimiterCalled.setTrue(); return(0); }); assertFalse(ioLimiterCalled.Value); }
private static LayoutBootstrapper SpatialLayoutFactory(CoordinateReferenceSystem crs) { return((indexFile, pageCache, meta, targetLayout) => { if (targetLayout.Equals(crs.Name)) { MutableBoolean failure = new MutableBoolean(false); Function <ByteBuffer, string> onError = byteBuffer => { failure.setTrue(); return ""; }; SpaceFillingCurveSettings curveSettings = SpaceFillingCurveSettingsFactory.fromGBPTree(indexFile, pageCache, onError); if (!failure.Value) { return new SpatialLayout(crs, curveSettings.curve()); } } return null; }); }