public void close() { CloseHelper.quietClose(channel); }
public void close() { CloseHelper.quietClose(channel); }
@After public void after() { CloseHelper.quietClose(publication); CloseHelper.quietClose(subscription); CloseHelper.quietClose(spy); CloseHelper.quietClose(client); CloseHelper.quietClose(driver); driver.context().deleteAeronDirectory(); }
@After public void after() { CloseHelper.quietClose(publishingClient); CloseHelper.quietClose(subscribingClient); CloseHelper.quietClose(driver); if (null != context.aeronDirectory()) { context.deleteAeronDirectory(); } }
@After public void after() { CloseHelper.quietClose(clientC); CloseHelper.quietClose(clientB); CloseHelper.quietClose(clientA); driverB.close(); driverA.close(); IoUtil.delete(new File(ROOT_DIR), false); }
CloseHelper.quietClose(driver);
/** * Add a {@link ExclusivePublication} and set it up to be recorded. * <p> * This is a sessionId specific recording. * * @param channel for the publication. * @param streamId for the publication. * @return the {@link ExclusivePublication} ready for use. */ public ExclusivePublication addRecordedExclusivePublication(final String channel, final int streamId) { ExclusivePublication publication = null; lock.lock(); try { ensureOpen(); publication = aeron.addExclusivePublication(channel, streamId); startRecording(ChannelUri.addSessionId(channel, publication.sessionId()), streamId, SourceLocation.LOCAL); } catch (final RuntimeException ex) { CloseHelper.quietClose(publication); throw ex; } finally { lock.unlock(); } return publication; }
@After public void after() { CloseHelper.quietClose(clientB); CloseHelper.quietClose(clientA); CloseHelper.close(driver); driver.context().deleteAeronDirectory(); }
CloseHelper.quietClose(driver);
CloseHelper.quietClose(driver);
CloseHelper.quietClose(driver);
CloseHelper.quietClose(publication); throw ex;
CloseHelper.quietClose(driver);
CloseHelper.quietClose(driver);
CloseHelper.quietClose(sendDatagramChannel); if (receiveDatagramChannel != sendDatagramChannel) CloseHelper.quietClose(receiveDatagramChannel);
CloseHelper.quietClose(subscription); CloseHelper.quietClose(publication);
CloseHelper.quietClose(publication); CloseHelper.quietClose(subscription);
CloseHelper.quietClose(subscription); CloseHelper.quietClose(publication);
public void close() { if (isClosed.compareAndSet(false, true)) { CloseHelper.quietClose(hashTable); CloseHelper.quietClose(bucketBufferArray); } }
@Override public void close() { if (subscriber != null) CloseHelper.quietClose(subscriber); if (responder != null) CloseHelper.quietClose(responder); if (scheduledExecutorService != null) scheduledExecutorService.shutdown(); }