Interface FaceQueue
-
- All Known Implementing Classes:
AbstractFaceQueue,AskfaceFaceQueue,FacesQueue,FileCacheFaceQueue
public interface FaceQueueInterface for classes implementing a means to loadFaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddFaceQueueListener(@NotNull FaceQueueListener faceQueueListener)Adds aFaceQueueListenerto be notified about processed faces.voidloadFace(@NotNull Face face)Request a face.voidremoveFaceQueueListener(@NotNull FaceQueueListener faceQueueListener)Removes aFaceQueueListenerto be notified about processed faces.voidreset()Reset the processing: forget about pending faces.
-
-
-
Method Detail
-
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
void loadFace(@NotNull @NotNull Face face)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
void addFaceQueueListener(@NotNull @NotNull FaceQueueListener faceQueueListener)Adds aFaceQueueListenerto be notified about processed faces.- Parameters:
faceQueueListener- the listener to add
-
removeFaceQueueListener
void removeFaceQueueListener(@NotNull @NotNull FaceQueueListener faceQueueListener)Removes aFaceQueueListenerto be notified about processed faces.- Parameters:
faceQueueListener- the listener to remove
-
-