net.kuujo.vertigo.instance.impl.SimpleOutputConnection Maven / Gradle / Ivy
package net.kuujo.vertigo.instance.impl;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import net.kuujo.vertigo.context.OutputConnectionContext;
import net.kuujo.vertigo.instance.OutputConnection;
/**
* Created by Magnus.Koch on 8/30/2016.
*/
public class SimpleOutputConnection extends AbstractOutputConnection {
public SimpleOutputConnection(Vertx vertx, OutputConnectionContext context) {
super(vertx, context);
}
@Override
protected void doPause(long id) {
}
@Override
protected void doResume(long id) {
}
@Override
protected boolean isPaused() {
return false;
}
@Override
protected void doQueue(Payload payload) {
}
@Override
public int size() {
return 0;
}
@Override
public OutputConnection setSendQueueMaxSize(int maxSize) {
return this;
}
@Override
public int getSendQueueMaxSize() {
return Integer.MAX_VALUE;
}
@Override
public boolean sendQueueFull() {
return false;
}
@Override
public OutputConnection drainedHandler(Handler handler) {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy