All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.king.platform.net.http.netty.eventbus.Event Maven / Gradle / Ivy

// Copyright (C) king.com Ltd 2015
// https://github.com/king/king-http-client
// Author: Magnus Gustafsson
// License: Apache 2.0, https://raw.github.com/king/king-http-client/LICENSE-APACHE

package com.king.platform.net.http.netty.eventbus;

import com.king.platform.net.http.HttpResponse;
import com.king.platform.net.http.netty.HttpRequestContext;
import com.king.platform.net.http.netty.ServerInfo;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.http.HttpResponseStatus;

public interface Event {
	Event2 ERROR = new Event2<>("Error");
	Event1 COMPLETED = new Event1<>("Completed");
	Event1 TOUCH = new Event1<>("Touch");

	Event1 EXECUTE_REQUEST = new Event1<>("ExecuteRequest");
	Event1 WRITE_BODY = new Event1<>("WriteDelayedBody");

	Event1 CREATED_CONNECTION = new Event1<>("CreatedConnection");
	Event1 REUSED_CONNECTION = new Event1<>("ReusedConnection");
	Event1 POOLED_CONNECTION = new Event1<>("PooledConnection");
	Event1 CLOSED_CONNECTION = new Event1<>("CloseConnection");

	Event1 onConnecting = new Event1<>("onConnecting");
	Event1 onConnected = new Event1<>("onConnected");
	Event1 onWroteHeaders = new Event1<>("onWroteHeaders");
	Event2 onWroteContentProgressed = new Event2<>("onWroteContentProgressed");
	Event1 onWroteContentCompleted = new Event1<>("onWroteContentCompleted");
	Event1 onReceivedStatus = new Event1<>("onReceivedStatus");
	Event1 onReceivedHeaders = new Event1<>("onReceivedHeaders");
	Event2 onReceivedContentPart = new Event2<>("onReceivedContentPart");
	Event2 onReceivedCompleted = new Event2<>("onReceivedCompleted");

	Event1 onHttpResponseDone = new Event1<>("onHttpResponseDone");


	String getName();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy