Interface FaceQueue

All Known Implementing Classes:
AbstractFaceQueue, AskfaceFaceQueue, FacesQueue, FileCacheFaceQueue

public interface FaceQueue
Interface for classes implementing a means to load 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

      void loadFace(@NotNull @NotNull Face face)
      Request a face. Must eventually call either FaceQueueListener.faceLoaded(Face, FaceImages) or FaceQueueListener.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 a FaceQueueListener to be notified about processed faces.
      Parameters:
      faceQueueListener - the listener to add
    • removeFaceQueueListener

      void removeFaceQueueListener(@NotNull @NotNull FaceQueueListener faceQueueListener)
      Removes a FaceQueueListener to be notified about processed faces.
      Parameters:
      faceQueueListener - the listener to remove