I - input symbol typeD - output domain type@ParametersAreNonnullByDefault public class DynamicParallelOracle<I,D> extends Object implements ParallelOracle<I,D>
ParallelOracle.PoolPolicyMembershipOracle.DFAMembershipOracle<I>, MembershipOracle.MealyMembershipOracle<I,O>| Modifier and Type | Field and Description |
|---|---|
static int |
BATCH_SIZE |
static ParallelOracle.PoolPolicy |
POOL_POLICY |
static int |
POOL_SIZE |
| Constructor and Description |
|---|
DynamicParallelOracle(Supplier<? extends MembershipOracle<I,D>> oracleSupplier,
int batchSize,
ExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
processQueries(Collection<? extends Query<I,D>> queries)
Processes the specified collection of queries.
|
void |
shutdown()
Shuts down all worker threads, but waits for any queued queries to be processed.
|
void |
shutdownNow()
Shuts down all worker threads, and attempts to abort any query processing currently taking place.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitanswerQuery, answerQuery, asOracle, processQuerypublic static final int BATCH_SIZE
public static final int POOL_SIZE
public static final ParallelOracle.PoolPolicy POOL_POLICY
public DynamicParallelOracle(Supplier<? extends MembershipOracle<I,D>> oracleSupplier, @Nonnegative int batchSize, ExecutorService executor)
public void shutdown()
ParallelOracleshutdown in interface ParallelOracle<I,D>ExecutorService.shutdown()public void shutdownNow()
ParallelOracleshutdownNow in interface ParallelOracle<I,D>ExecutorService.shutdownNow()public void processQueries(Collection<? extends Query<I,D>> queries)
MembershipOracleQuery.answer(Object) method should have been called with an argument reflecting the SUL response to the
respective query.processQueries in interface MembershipOracle<I,D>queries - the queries to processQuery.answer(Object)Copyright © 2018. All rights reserved.