Skip to content

Commit

Permalink
eeeeeeee
Browse files Browse the repository at this point in the history
  • Loading branch information
SrRapero720 committed Nov 18, 2024
1 parent 5418601 commit a1fe51e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
24 changes: 0 additions & 24 deletions src/main/java/org/watermedia/api/math/Clock.java

This file was deleted.

32 changes: 30 additions & 2 deletions src/main/java/org/watermedia/core/network/NetworkRequest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,35 @@
package org.watermedia.core.network;

import java.net.http.HttpClient;
import org.apache.logging.log4j.Marker;
import org.apache.logging.log4j.MarkerManager;
import org.watermedia.tools.ThreadTool;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class NetworkRequest implements Runnable {
private static final Marker IT = MarkerManager.getMarker("ImageAPI");
private static final DateFormat FORMAT = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z");
private static final ExecutorService EXECUTOR = Executors.newScheduledThreadPool(ThreadTool.minThreads(), ThreadTool.factory("ImageFetch-Worker", Thread.NORM_PRIORITY + 1));


public NetworkRequest() {

}


public void start() {
EXECUTOR.execute(this);
}

@Override
public void run() {

}



public class NetworkRequest {

}

0 comments on commit a1fe51e

Please sign in to comment.