Package com.gemstone.gemfire.cache

Examples of com.gemstone.gemfire.cache.CustomExpiry


      }
    });

    when(regionFactory.setCustomEntryIdleTimeout(any(CustomExpiry.class))).thenAnswer(new Answer<RegionFactory>(){
      @Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable {
        CustomExpiry customEntryIdleTimeout = (CustomExpiry) invocation.getArguments()[0];
        attributesFactory.setCustomEntryIdleTimeout(customEntryIdleTimeout);
        return regionFactory;
      }
    });

    when(regionFactory.setEntryTimeToLive(any(ExpirationAttributes.class))).thenAnswer(new Answer<RegionFactory>(){
      @Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable {
        ExpirationAttributes entryTimeToLive = (ExpirationAttributes) invocation.getArguments()[0];
        attributesFactory.setEntryTimeToLive(entryTimeToLive);
        return regionFactory;
      }
    });

    when(regionFactory.setCustomEntryTimeToLive(any(CustomExpiry.class))).thenAnswer(new Answer<RegionFactory>(){
      @Override public RegionFactory answer(InvocationOnMock invocation) throws Throwable {
        CustomExpiry customEntryTimeToLive = (CustomExpiry) invocation.getArguments()[0];
        attributesFactory.setCustomEntryTimeToLive(customEntryTimeToLive);
        return regionFactory;
      }
    });
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.CustomExpiry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.