public static interface Query.Controller
extends java.io.Serializable, java.io.Closeable
Example:
Storage<UserInfo> users = ... long count = users.query("name = ?").count(Query.Timeout.seconds(10));
Modifier and Type | Method and Description |
---|---|
void |
begin()
Called by query when it begins, possibly multiple times.
|
void |
close()
Always called by query when finished, even when it fails.
|
void |
continueCheck()
Periodically called by query to determine if it should continue.
|
long |
getTimeout()
Returns a non-negative value if controller imposes an absolute upper
bound on query execution time.
|
java.util.concurrent.TimeUnit |
getTimeoutUnit()
Returns the unit for the timeout, if applicable.
|
long getTimeout()
java.util.concurrent.TimeUnit getTimeoutUnit()
void begin()
void continueCheck() throws FetchException
FetchException
void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.