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

com.firefly.net.Handler Maven / Gradle / Ivy

There is a newer version: 5.0.0-dev6
Show newest version
package com.firefly.net;

public interface Handler {

	void sessionOpened(Session session) throws Throwable;

	void sessionClosed(Session session) throws Throwable;

	void messageReceived(Session session, Object message) throws Throwable;

	void exceptionCaught(Session session, Throwable t) throws Throwable;

	default void failedOpeningSession(Integer sessionId, Throwable t) throws Throwable {

	}

	default void failedAcceptingSession(Integer sessionId, Throwable t) throws Throwable {

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy