@Test public void readsMaxCacheFromConfiguration() throws Exception { final EverrestConfiguration configuration = new EverrestConfiguration(); configuration.setAsynchronousCacheSize(123); asynchronousJobPool = new AsynchronousJobPool(configuration); assertEquals(123, asynchronousJobPool.getMaxCacheSize()); }
public int getMaxCacheSize() { return maxCacheSize; }
AsynchronousJobPool implements ContextResolver<AsynchronousJobPool> { public int getMaxCacheSize() { return maxCacheSize; } }
AsynchronousJobPool implements ContextResolver<AsynchronousJobPool> { public int getMaxCacheSize() { return maxCacheSize; } AsynchronousJobPool(EverrestConfiguration config); }
AsynchronousJobPool implements ContextResolver<AsynchronousJobPool> { public int getMaxCacheSize() { return maxCacheSize; } AsynchronousJobPool(EverrestConfiguration config); String getAsynchronousServicePath(); int getMaxCacheSize(); int getMaxQueueSize(); int getThreadPoolSize(); int getJobTimeout(); @Override AsynchronousJobPool getContext(Class<?> type); final AsynchronousJob addJob(Object resource, ResourceMethodDescriptor resourceMethod, Object[] params); AsynchronousJob getJob(Long jobId); AsynchronousJob removeJob(Long jobId); List<AsynchronousJob> getAll(); boolean registerListener(AsynchronousJobListener listener); boolean unregisterListener(AsynchronousJobListener listener); @PreDestroy void stop(); }
AsynchronousJobPool implements ContextResolver<AsynchronousJobPool> { public int getMaxCacheSize() { return maxCacheSize; } AsynchronousJobPool(EverrestConfiguration config); String getAsynchronousServicePath(); int getMaxCacheSize(); int getMaxQueueSize(); int getThreadPoolSize(); int getJobTimeout(); @Override AsynchronousJobPool getContext(Class<?> type); final AsynchronousJob addJob(Object resource, ResourceMethodDescriptor resourceMethod, Object[] params); AsynchronousJob getJob(Long jobId); AsynchronousJob removeJob(Long jobId); List<AsynchronousJob> getAll(); boolean registerListener(AsynchronousJobListener listener); boolean unregisterListener(AsynchronousJobListener listener); @PreDestroy void stop();  }