Interface FaceQueue
- All Known Implementing Classes:
AbstractFaceQueue,AskfaceFaceQueue,FacesQueue,FileCacheFaceQueue
public interface FaceQueue
Interface for classes implementing a means to load
Faces.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddFaceQueueListener(@NotNull FaceQueueListener faceQueueListener) Adds aFaceQueueListenerto be notified about processed faces.voidRequest a face.voidremoveFaceQueueListener(@NotNull FaceQueueListener faceQueueListener) Removes aFaceQueueListenerto be notified about processed faces.voidreset()Reset the processing: forget about pending faces.
-
Method Details
-
reset
void reset()Reset the processing: forget about pending faces. This function is called whenever the server socket breaks, or when a new connection has been established. -
loadFace
Request a face. Must eventually call eitherFaceQueueListener.faceLoaded(Face, FaceImages)orFaceQueueListener.faceFailed(Face)for the face. Faces re-requested while still processing may be notified only once.- Parameters:
face- the requested face
-
addFaceQueueListener
Adds aFaceQueueListenerto be notified about processed faces.- Parameters:
faceQueueListener- the listener to add
-
removeFaceQueueListener
Removes aFaceQueueListenerto be notified about processed faces.- Parameters:
faceQueueListener- the listener to remove
-