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

com.dragome.forms.bindings.client.command.AsyncEvents Maven / Gradle / Ivy

The newest version!
package com.dragome.forms.bindings.client.command;

import com.dragome.forms.bindings.client.binding.Disposable;
import com.dragome.forms.bindings.client.channel.Destination;
import com.dragome.forms.bindings.client.channel.Publisher;
import com.dragome.forms.bindings.client.value.ValueTarget;
import com.dragome.forms.bindings.extra.user.client.Command;

/**
 * This class provides methods to hooking into the events of an {@link AsyncUiCommand}.
 */
public interface AsyncEvents extends Events
{
	Disposable sendResultTo(Destination destination);

	Disposable sendResultTo(ValueTarget destination);

	Disposable sendResultTo(Publisher publisher);

	Disposable sendErrorTo(Destination destination);

	Disposable sendErrorTo(ValueTarget destination);

	Disposable sendErrorTo(Publisher publisher);

	Disposable onSuccessInvoke(Command command);

	Disposable onSuccessInvoke(ParameterisedCommand command);

	Disposable onErrorInvoke(Command command);

	Disposable onErrorInvoke(ParameterisedCommand command);

	 SendToBuilder onSuccessSend(T value);

	 SendToBuilder onErrorSend(T value);

	Disposable sendAllEventsTo(AsyncLifeCycleCallback callback);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy