com.realtime.crossfire.jxclient.faces
Interface FaceQueue

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

public interface FaceQueue

Interface for classes implementing a means to load Faces.


Method Summary
 void addFaceQueueListener(FaceQueueListener faceQueueListener)
          Adds a FaceQueueListener to be notified about processed faces.
 void loadFace(Face face)
          Request a face.
 void removeFaceQueueListener(FaceQueueListener faceQueueListener)
          Removes a FaceQueueListener to be notified about processed faces.
 void reset()
          Reset the processing: forget about pending faces.
 

Method Detail

addFaceQueueListener

void addFaceQueueListener(@NotNull
                          FaceQueueListener faceQueueListener)
Adds a FaceQueueListener to be notified about processed faces.

Parameters:
faceQueueListener - the listener to add

loadFace

void loadFace(@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

removeFaceQueueListener

void removeFaceQueueListener(@NotNull
                             FaceQueueListener faceQueueListener)
Removes a FaceQueueListener to be notified about processed faces.

Parameters:
faceQueueListener - the listener to remove

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.