use of com.linkedin.d2.discovery.event.PropertyEventThread.PropertyEventShutdownCallback in project rest.li by linkedin.
the class PropertyStoreTest method testShutdown.
@Test(groups = { "small", "back-end" })
public void testShutdown() throws InterruptedException, PropertyStoreException {
PropertyStore<String> store = getStore();
final CountDownLatch latch = new CountDownLatch(1);
store.shutdown(new PropertyEventShutdownCallback() {
@Override
public void done() {
latch.countDown();
}
});
if (!latch.await(5, TimeUnit.SECONDS)) {
fail("unable to shut down store");
}
}
Aggregations