Class FileCacheFaceQueue

java.lang.Object
com.realtime.crossfire.jxclient.faces.AbstractFaceQueue
com.realtime.crossfire.jxclient.faces.FileCacheFaceQueue
All Implemented Interfaces:
FaceQueue

public class FileCacheFaceQueue extends AbstractFaceQueue
A FaceQueue loading faces from ImageCache instances.
  • Constructor Details

    • FileCacheFaceQueue

      public FileCacheFaceQueue(@NotNull @NotNull ImageCache imageCacheOriginal, @NotNull @NotNull ImageCache imageCacheScaled, @NotNull @NotNull ImageCache imageCacheMagicMap)
      Creates a new instance.
      Parameters:
      imageCacheOriginal - the image cache used for loading original image files
      imageCacheScaled - the image cache used for loading scaled image files
      imageCacheMagicMap - the image cache used for loading magic map image files
  • Method Details

    • reset

      public void reset()
      Description copied from interface: FaceQueue
      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

      public void loadFace(@NotNull @NotNull Face face)
      Description copied from interface: FaceQueue
      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
    • saveFace

      public void saveFace(@NotNull @NotNull Face face, @NotNull @NotNull FaceImages faceImages)
      Saves a face to the caches. This function returns immediately; the faces are written asynchronously.
      Parameters:
      face - the face to write
      faceImages - the image information to write