public long getRemainingSize() { try { return queue.getSize(); } catch (MailQueue.MailQueueException e) { throw new RuntimeException(e); } } }
private long getRemainingSize() { try { return queue.getSize(); } catch (MailQueue.MailQueueException e) { throw new RuntimeException(e); } } }
@Override public long getSize() throws Exception { try { return queue.getSize(); } catch (MailQueueException e) { throw new Exception(e.getMessage()); } }
public static MailQueueDTO from(ManageableMailQueue mailQueue) throws MailQueueException { return builder() .name(mailQueue.getName()) .size(mailQueue.getSize()) .build(); }