queues, and posting to db works
This commit is contained in:
@@ -1,16 +1,5 @@
|
|||||||
package io.github.lumijiez;
|
package io.github.lumijiez;
|
||||||
|
|
||||||
import java.net.HttpURLConnection;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
|
||||||
import java.security.MessageDigest;
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
|
||||||
import java.util.Random;
|
|
||||||
import java.util.Timer;
|
|
||||||
import java.util.TimerTask;
|
|
||||||
|
|
||||||
import static io.github.lumijiez.Main.logger;
|
|
||||||
|
|
||||||
public class AddressHolder {
|
public class AddressHolder {
|
||||||
private String host;
|
private String host;
|
||||||
private int port;
|
private int port;
|
||||||
|
|||||||
@@ -15,8 +15,6 @@ import java.util.concurrent.Executors;
|
|||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
import static io.github.lumijiez.Main.logger;
|
|
||||||
|
|
||||||
public class BrokerConnector {
|
public class BrokerConnector {
|
||||||
private static final String QUEUE_NAME = "random_sha";
|
private static final String QUEUE_NAME = "random_sha";
|
||||||
private static final String RABBITMQ_HOST = "rabbitmq";
|
private static final String RABBITMQ_HOST = "rabbitmq";
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
package io.github.lumijiez;
|
package io.github.lumijiez;
|
||||||
|
|
||||||
import com.google.gson.JsonObject;
|
|
||||||
import com.google.gson.JsonPrimitive;
|
|
||||||
import com.rabbitmq.client.Channel;
|
import com.rabbitmq.client.Channel;
|
||||||
import com.rabbitmq.client.Connection;
|
import com.rabbitmq.client.Connection;
|
||||||
import com.rabbitmq.client.ConnectionFactory;
|
import com.rabbitmq.client.ConnectionFactory;
|
||||||
|
|||||||
Reference in New Issue
Block a user