/*
 * Copyright 2018 Scytl Secure Electronic Voting SA
 *
 * All rights reserved
 *
 * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
 */
package com.scytl.products.ov.commons.messaging;

/**
 * Receiver.
 */
interface Receiver extends Destroyable {
    /**
     * Receives messages.
     * 
     * @throws DestinationNotFoundException
     *             destination does not exist
     * @throws MessagingException
     *             failed to receive messages.
     */
    void receive() throws DestinationNotFoundException, MessagingException;
}
