Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.coherence.servlet
Class SessionHelper.SessionReaperDaemon.IncrementalReapTask

    java.lang.Object
      com.tangosol.coherence.servlet.SessionHelper.SessionReaperDaemon.IncrementalReapTask

All Implemented Interfaces:
  java.lang.Runnable

Enclosing class:
  SessionHelper.SessionReaperDaemon

    public class SessionHelper.SessionReaperDaemon.IncrementalReapTask

extends java.lang.Object
implements java.lang.Runnable

A task that starts a reaping cycle.

Constructor Summary
`SessionHelper.SessionReaperDaemon.IncrementalReapTask(java.util.Iterator iterIds, int cEstimatedSessions)` Construct an IncrementalReapTask.

Method Summary
`int` | `getActualSessionCount()`
`int` | `getSessionChunkCount()`
`int` | `getSessionChunkMillis()`
`protected java.util.Iterator` | `getSessionIdIterator()`
`protected void` | `incActualSessionCount()` Increment the number of sessions actually checked so far.
`void` | `run()` The task process: Process a portion of the reaping cycle.

Constructor Detail

### SessionHelper.SessionReaperDaemon.IncrementalReapTask

    public SessionHelper.SessionReaperDaemon.IncrementalReapTask(java.util.Iterator iterIds,
                                                                 int cEstimatedSessions)

  Construct an IncrementalReapTask.

  Parameters:
    `iterIds` - an iterator of session IDs to check
    `cEstimatedSessions` - the estimated number of session IDs to check

Method Detail

### run

    public void run()

  The task process: Process a portion of the reaping cycle.

  Specified by:
    `run` in interface `java.lang.Runnable`

### getSessionIdIterator

    protected java.util.Iterator getSessionIdIterator()

  Returns:
    the iterator of session ids to check

### getSessionChunkCount

    public int getSessionChunkCount()

  Returns:
    the number of sessions to process at a time

### getSessionChunkMillis

    public int getSessionChunkMillis()

  Returns:
    the number of milliseconds allocated to each chunk

### getActualSessionCount

    public int getActualSessionCount()

  Returns:
    the number of sessions actually checked so far

### incActualSessionCount

    protected void incActualSessionCount()

  Increment the number of sessions actually checked so far.

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.