Package com.caplin.streamlink
Interface CommandSubscription
public interface CommandSubscription
Stored information on the subscription and lets you unpersist the command.
-
Method Summary
Modifier and TypeMethodDescriptionReturns theCommandResultListener
that is informed of success or failure of this command.Returns the subject the command was executed on.void
For commands that have been set as persistent this method will turn off that persistence.
-
Method Details
-
getSubject
String getSubject()Returns the subject the command was executed on.
- Returns:
- The subject of the command.
-
getCommandListener
CommandListener getCommandListener()Returns the
CommandResultListener
that is informed of success or failure of this command.- Returns:
- The command listener.
-
unPersist
void unPersist()For commands that have been set as persistent this method will turn off that persistence. Once persistence is turned off the command will not be resent to the server when a reconnection occurs.
-