public static void removePages4Session(final String _sessionId)
    {
        final AdvancedCache<String, StoredPage> cache = InfinispanCache.get().<String, StoredPage>getIgnReCache(
                        InfinispanPageStore.PAGECACHE);
        final QueryFactory queryFactory = Search.getQueryFactory(cache);
        final Query query = queryFactory.from(StoredPage.class).having("sessionId").eq(_sessionId).build();
        query.<StoredPage>list().forEach(storedPage -> cache.remove(storedPage.getSessionId() + "::" + storedPage
                        .getPage().getPageId()));
    }
public static void removePages4Session(final String _sessionId)
    {
        final AdvancedCache<String, StoredPage> cache = InfinispanCache.get().<String, StoredPage>getIgnReCache(
                        InfinispanPageStore.PAGECACHE);
        final QueryFactory queryFactory = Search.getQueryFactory(cache);
        final Query query = queryFactory.from(StoredPage.class).having("sessionId").eq(_sessionId).build();
        query.<StoredPage>list().forEach(storedPage -> cache.remove(storedPage.getSessionId() + "::" + storedPage
                        .getPage().getPageId()));
    }
public static void removePages4Session ( final String _sessionId ) { final AdvancedCache < String , StoredPage > cache = InfinispanCache . get ( ) . < String , StoredPage > getIgnReCache ( InfinispanPageStore . PAGECACHE ) ; final QueryFactory queryFactory = Search . getQueryFactory ( cache ) ; final Query query = queryFactory . from ( StoredPage . class ) . having ( "sessionId" ) . eq ( _sessionId ) . build ( ) ; query . < StoredPage > list ( ) . forEach ( storedPage -> cache . remove ( storedPage . getSessionId ( ) + "::" + storedPage . getPage ( ) . getPageId ( ) ) ) ; }
Removes the session.

@param _sessionId the session id
Removes the session .