Package org.syncany.operations.daemon
Class EventUserInteractionListener
- java.lang.Object
-
- org.syncany.operations.daemon.EventUserInteractionListener
-
- All Implemented Interfaces:
UserInteractionListener
public class EventUserInteractionListener extends java.lang.Object implements UserInteractionListener
This implementation of aUserInteractionListener
uses theLocalEventBus
to broadcast interaction requests to subscribers and waits synchronously for a corresponding event response. All methods wait until the response event arrives by sending the current thread to sleep viaObject.wait()
, and waking it up viaObject.notify()
.- See Also:
UserInteractionListener
-
-
Constructor Summary
Constructors Constructor Description EventUserInteractionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onConfirmUserInteractionExternalManagementRequest(ConfirmUserInteractionExternalEventResponse response)
void
onGetPasswordUserInteractionExternalManagementRequest(GetPasswordUserInteractionExternalEventResponse response)
boolean
onUserConfirm(java.lang.String header, java.lang.String message, java.lang.String question)
java.lang.String
onUserNewPassword()
java.lang.String
onUserPassword(java.lang.String header, java.lang.String message)
-
-
-
Constructor Detail
-
EventUserInteractionListener
public EventUserInteractionListener()
-
-
Method Detail
-
onUserConfirm
public boolean onUserConfirm(java.lang.String header, java.lang.String message, java.lang.String question)
- Specified by:
onUserConfirm
in interfaceUserInteractionListener
-
onUserPassword
public java.lang.String onUserPassword(java.lang.String header, java.lang.String message)
- Specified by:
onUserPassword
in interfaceUserInteractionListener
-
onUserNewPassword
public java.lang.String onUserNewPassword()
- Specified by:
onUserNewPassword
in interfaceUserInteractionListener
-
onConfirmUserInteractionExternalManagementRequest
public void onConfirmUserInteractionExternalManagementRequest(ConfirmUserInteractionExternalEventResponse response)
-
onGetPasswordUserInteractionExternalManagementRequest
public void onGetPasswordUserInteractionExternalManagementRequest(GetPasswordUserInteractionExternalEventResponse response)
-
-