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

com.guicedee.guicedservlets.websockets.services.IWebSocketMessageReceiver Maven / Gradle / Ivy

package com.guicedee.guicedservlets.websockets.services;

import com.guicedee.guicedinjection.interfaces.IDefaultService;
import com.guicedee.guicedservlets.websockets.options.WebSocketMessageReceiver;

import java.util.Set;

/**
 * Registers receivers for web socket messages
 */
public interface IWebSocketMessageReceiver
		extends IDefaultService
{
	/**
	 * Returns a unique list of names that this applies for
	 *
	 * @return
	 */
	Set messageNames();

	/**
	 * Receives a message on the web socket to a specific designated name registered on GuicedWebSocket
	 *
	 * @param message
	 * 		The message if required
	 *
	 * @throws java.lang.SecurityException
	 * 		if any consumer decides the connection is not valid
	 */
	void receiveMessage(WebSocketMessageReceiver message) throws SecurityException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy