]> git.somenet.org - pub/jan/dst18.git/blob - ass3-messaging/src/main/java/dst/ass3/messaging/IRequestGateway.java
Normalize versions across project to 2018.1
[pub/jan/dst18.git] / ass3-messaging / src / main / java / dst / ass3 / messaging / IRequestGateway.java
1 package dst.ass3.messaging;
2
3 import java.io.Closeable;
4 import java.io.IOException;
5
6 public interface IRequestGateway extends Closeable {
7
8     /**
9      * Serializes and routes a request to the correct queue.
10      *
11      * @param request the request
12      */
13     void uploadRequest(UploadRequest request);
14
15     /**
16      * Closes any resources that may have been initialized (connections, channels, etc.)
17      *
18      * @throws IOException propagated exceptions
19      */
20     @Override
21     void close() throws IOException;
22 }