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

li.rudin.rt.api.handler.RTHandler Maven / Gradle / Ivy

There is a newer version: 4.1
Show newest version
package li.rudin.rt.api.handler;

import li.rudin.rt.api.config.RTConfig;
import li.rudin.rt.api.filter.RTFilter;
import li.rudin.rt.api.listener.RTListener;
import li.rudin.rt.api.observable.Observable;
import li.rudin.rt.api.observable.list.ObservableList;

public interface RTHandler extends RTSender
{

	/**
	 * Sets a filter instance
	 * @param filter
	 */
	void setFilter(RTFilter filter);
	
	/**
	 * Returns the set filter
	 * @return
	 */
	RTFilter getFilter();
	
	/**
	 * Adds a listener
	 * @param listener
	 */
	void addListener(RTListener listener);
	
	/**
	 * Removes a listener
	 * @param listener
	 */
	void removeListener(RTListener listener);
	
	/**
	 * Returns the id of the handler instance
	 * @return
	 */
	String getId();
	
	/**
	 * Returns the connected client count
	 * @return
	 */
	int getClientCount();
	
	/**
	 * Returns the rt config
	 * @return
	 */
	RTConfig getConfig();
	
	/**
	 * Binds an observable to the rt instance
	 * @param obs
	 * @return
	 */
	,T> O bind(O obs, String changeId);

	/**
	 * Binds an observable list to the rt instance
	 * @param obs
	 * @return
	 */
	,T> O bind(O obs, String changeId);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy