public abstract class BrowserDef
extends java.lang.Object
Browser
.Modifier and Type | Class and Description |
---|---|
static class |
BrowserDef.BrowserType
Enumeration of the different Browser types possible.
|
static class |
BrowserDef.DistributionScope
Enumeration of the possible ways to browse for entries in a Space based upon where
entries are stored in the space.
|
static class |
BrowserDef.TimeScope
Enumeration of the possible ways to browse for entries in a Space based upon the time
at which entries were stored in the space relative to the Browser creation time.
|
Modifier and Type | Field and Description |
---|---|
static int |
NO_WAIT
Calls to the Browser's next() method will return immediately if no entries are left
to iterate over.
|
static long |
PREFETCH_ALL
Prefetch all of the entries available in the Space.
|
static int |
WAIT_FOREVER
Calls to the Browser's next() method will block endlessly waiting for more entries
to iterate over.
|
Constructor and Description |
---|
BrowserDef() |
Modifier and Type | Method and Description |
---|---|
static BrowserDef |
create()
Instantiate a new BrowserDef instance.
|
static BrowserDef |
create(long timeout)
Instantiate a new BrowserDef instance with the specified timeout.
|
static BrowserDef |
create(long timeout,
BrowserDef.TimeScope timeScope)
Instantiate a new BrowserDef instance with the specified timeout and time scope settings.
|
static BrowserDef |
create(long timeout,
BrowserDef.TimeScope timeScope,
BrowserDef.DistributionScope distributionScope)
Instantiate a new BrowserDef instance with the specified timeout, time scope, and distribution
scope settings.
|
abstract BrowserDef.DistributionScope |
getDistributionScope()
Retrieve the distribution scope setting of the Browser.
|
abstract long |
getPrefetch()
Retrieve the prefetch setting of the Browser.
|
abstract long |
getQueryLimit()
Retrieve the query limit setting of the Browser.
|
abstract long |
getTimeout()
Retrieve the timeout setting of the Browser.
|
abstract BrowserDef.TimeScope |
getTimeScope()
Retrieve the time scope setting of the Browser.
|
abstract boolean |
isJoin() |
abstract boolean |
isRoute() |
abstract BrowserDef |
setDistributionScope(BrowserDef.DistributionScope distributionScope)
Sets the distribution scope associated with the Browser.
|
abstract BrowserDef |
setJoin(boolean doJoin) |
abstract BrowserDef |
setPrefetch(long count) |
abstract BrowserDef |
setQueryLimit(long limit) |
abstract BrowserDef |
setRoute(boolean doRoute) |
abstract BrowserDef |
setTimeout(long timeout)
Sets the timeout value associated with the Browser.
|
abstract BrowserDef |
setTimeScope(BrowserDef.TimeScope timeScope)
Sets the time scope associated with the Browser.
|
public static final long PREFETCH_ALL
GET
Browsers only.public static int NO_WAIT
public static int WAIT_FOREVER
public static BrowserDef create()
public static BrowserDef create(long timeout)
timeout
- Number of milliseconds the next() method should block waiting for more entries.public static BrowserDef create(long timeout, BrowserDef.TimeScope timeScope)
timeout
- Number of milliseconds the next() method should block waiting for more entries.timeScope
- An enumeration which specifies how to browse for entries in the Space based upon the time
at which entries were stored in the space relative to the Browser creation time.public static BrowserDef create(long timeout, BrowserDef.TimeScope timeScope, BrowserDef.DistributionScope distributionScope)
timeout
- Number of milliseconds the next() method should block waiting for more entries.timeScope
- An enumeration which specifies how to browse for entries in the Space based
upon the time at which entries were stored in the space relative to the Browser creation time.distributionScope
- An enumeration which specifies how to browse for entries in the Space based
upon where entries are stored in the space.public abstract BrowserDef.TimeScope getTimeScope()
public abstract BrowserDef.DistributionScope getDistributionScope()
public abstract long getTimeout()
public abstract BrowserDef setTimeout(long timeout)
NO_WAIT
.timeout
- Number of milliseconds the next() method should block waiting for more entries.public abstract BrowserDef setDistributionScope(BrowserDef.DistributionScope distributionScope)
distributionScope
- An enumeration which specifies how to browse for entries
in the Space based upon where entries are stored in the space.public abstract BrowserDef setTimeScope(BrowserDef.TimeScope timeScope)
timeScope
- An enumeration which specifies how to browse for entries in the Space
based upon the time at which entries were stored in the space relative to the Browser
creation time.public abstract BrowserDef setPrefetch(long count)
count
- The number of entries to prefetch from the Space. Used with GET
Browsers only.public abstract long getPrefetch()
GET
Browsers only.public abstract BrowserDef setRoute(boolean doRoute)
public abstract boolean isRoute()
public abstract BrowserDef setJoin(boolean doJoin)
public abstract boolean isJoin()
public abstract BrowserDef setQueryLimit(long limit)
limit
- The initial number of entries to get from the Space.public abstract long getQueryLimit()
Copyright (c) 2014 Cloud Software Group, Inc. All rights reserved.