Class FacesQueue
- java.lang.Object
-
- com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
-
- com.realtime.crossfire.jxclient.faces.FacesQueue
-
- All Implemented Interfaces:
FaceQueue
public class FacesQueue extends AbstractFaceQueue
The mainFaceQueuefor loading faces. It first delegates to aFileCacheFaceQueueto load the face from the disk cache. If this fails, the face is requested through aAskfaceFaceQueue.
-
-
Constructor Summary
Constructors Constructor Description FacesQueue(@NotNull FaceQueue faceQueue, @NotNull ImageCache imageCacheOriginal, @NotNull ImageCache imageCacheScaled, @NotNull ImageCache imageCacheMagicMap)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadFace(@NotNull Face face)Request a face.voidreset()Reset the processing: forget about pending faces.-
Methods inherited from class com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
addFaceQueueListener, fireFaceFailed, fireFaceLoaded, removeFaceQueueListener
-
-
-
-
Constructor Detail
-
FacesQueue
public FacesQueue(@NotNull @NotNull FaceQueue faceQueue, @NotNull @NotNull ImageCache imageCacheOriginal, @NotNull @NotNull ImageCache imageCacheScaled, @NotNull @NotNull ImageCache imageCacheMagicMap)Creates a new instance.- Parameters:
faceQueue- the face queue for sending askface commandsimageCacheOriginal- the image cache used for loading original image filesimageCacheScaled- the image cache used for loading scaled image filesimageCacheMagicMap- the image cache used for loading magic map image files
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:FaceQueueReset the processing: forget about pending faces. This function is called whenever the server socket breaks, or when a new connection has been established.
-
loadFace
public void loadFace(@NotNull @NotNull Face face)Description copied from interface:FaceQueueRequest 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
-
-