add http events
parent
5c31d6e055
commit
99cc9e2c90
@ -1,9 +1,9 @@
|
||||
dependencies {
|
||||
api project(':event-api')
|
||||
api libs.settings.api
|
||||
implementation libs.settings.datastructures.json
|
||||
implementation libs.net
|
||||
implementation libs.time
|
||||
implementation libs.settings.datastructures.json
|
||||
implementation libs.datastructures.common
|
||||
implementation libs.datastructures.json.tiny
|
||||
}
|
||||
|
@ -1,11 +1,10 @@
|
||||
package org.xbib.event.common;
|
||||
|
||||
import org.xbib.event.bus.EventBus;
|
||||
import org.xbib.settings.Settings;
|
||||
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.io.IOException;
|
||||
|
||||
public interface EventManagerService {
|
||||
|
||||
EventManagerService init(Settings settings, EventBus eventBus, ClassLoader classLoader, ExecutorService executorService);
|
||||
EventManagerService init(EventManager eventManager);
|
||||
|
||||
void shutdown() throws IOException;
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
package org.xbib.event.net.http;
|
||||
|
||||
import java.io.IOException;
|
||||
import org.xbib.event.common.EventManager;
|
||||
import org.xbib.event.common.EventManagerService;
|
||||
|
||||
public class HttpEventManagerService implements EventManagerService {
|
||||
|
||||
public HttpEventManagerService() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public EventManagerService init(EventManager eventManager) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void shutdown() throws IOException {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package org.xbib.event.net.http;
|
||||
|
||||
import org.xbib.event.common.EventManager;
|
||||
|
||||
public class HttpEventSubmitterService {
|
||||
|
||||
private final EventManager eventManager;
|
||||
|
||||
public HttpEventSubmitterService(EventManager eventManager) {
|
||||
this.eventManager = eventManager;
|
||||
}
|
||||
|
||||
public void submit(Object event) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue