org.ogre4j
Interface IResourceBackgroundQueue

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject, ISingleton<IResourceBackgroundQueue>
All Known Implementing Classes:
ResourceBackgroundQueue

public interface IResourceBackgroundQueue
extends INativeObject, IResourceAllocatedObject, ISingleton<IResourceBackgroundQueue>


Nested Class Summary
static interface IResourceBackgroundQueue.IListener
           
static interface IResourceBackgroundQueue.INotificationQueue
           
static interface IResourceBackgroundQueue.IQueuedNotification
           
static interface IResourceBackgroundQueue.IRequest
           
static interface IResourceBackgroundQueue.IRequestQueue
           
static interface IResourceBackgroundQueue.IRequestTicketMap
           
 
Method Summary
 boolean _doNextQueuedBackgroundProcess()
          Process a single queued background operation.
 void _fireOnFrameCallbacks()
          Fires all the queued events for background loaded resources.
 void _initThread()
          Initialise processing for a background thread.
 void _queueFireBackgroundLoadingComplete(IResource res)
          Queue the firing of the 'background loading complete' event to a event.
 void _queueFireBackgroundPreparingComplete(IResource res)
          Queue the firing of the 'background preparing complete' event to a event.
 boolean getStartBackgroundThread()
          Gets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks.
 void initialise()
          Initialise the background queue system.
 long initialiseAllResourceGroups(IResourceBackgroundQueue.IListener listener)
          Initialise all resource groups which are yet to be initialised in the background.
 long initialiseResourceGroup(java.lang.String name, IResourceBackgroundQueue.IListener listener)
          Initialise a resource group in the background.
 boolean isProcessComplete(long ticket)
          Returns whether a previously queued process has completed or not.
 long load(java.lang.String resType, java.lang.String name, java.lang.String group, boolean isManual, IManualResourceLoader loader, INameValuePairList loadParams, IResourceBackgroundQueue.IListener listener)
          Load a single resource in the background.
 long loadResourceGroup(java.lang.String name, IResourceBackgroundQueue.IListener listener)
          Loads a resource group in the background.
 long prepare(java.lang.String resType, java.lang.String name, java.lang.String group, boolean isManual, IManualResourceLoader loader, INameValuePairList loadParams, IResourceBackgroundQueue.IListener listener)
          Prepare a single resource in the background.
 long prepareResourceGroup(java.lang.String name, IResourceBackgroundQueue.IListener listener)
          Prepares a resource group in the background.
 void setStartBackgroundThread(boolean startThread)
          Sets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks.
 void shutdown()
          Shut down the background queue system.
 long unload(java.lang.String resType, long handle, IResourceBackgroundQueue.IListener listener)
          Unload a single resource in the background.
 long unload(java.lang.String resType, java.lang.String name, IResourceBackgroundQueue.IListener listener)
          Unload a single resource in the background.
 long unloadResourceGroup(java.lang.String name, IResourceBackgroundQueue.IListener listener)
          Unloads a resource group in the background.
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

setStartBackgroundThread

void setStartBackgroundThread(boolean startThread)
Sets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks.


getStartBackgroundThread

boolean getStartBackgroundThread()
Gets whether or not a thread should be created and started to handle the background loading, or whether a user thread will call the appropriate hooks.


initialise

void initialise()
Initialise the background queue system.


shutdown

void shutdown()
Shut down the background queue system.


initialiseResourceGroup

long initialiseResourceGroup(java.lang.String name,
                             IResourceBackgroundQueue.IListener listener)
Initialise a resource group in the background.


initialiseAllResourceGroups

long initialiseAllResourceGroups(IResourceBackgroundQueue.IListener listener)
Initialise all resource groups which are yet to be initialised in the background.


prepareResourceGroup

long prepareResourceGroup(java.lang.String name,
                          IResourceBackgroundQueue.IListener listener)
Prepares a resource group in the background.


loadResourceGroup

long loadResourceGroup(java.lang.String name,
                       IResourceBackgroundQueue.IListener listener)
Loads a resource group in the background.


unload

long unload(java.lang.String resType,
            java.lang.String name,
            IResourceBackgroundQueue.IListener listener)
Unload a single resource in the background.


unload

long unload(java.lang.String resType,
            long handle,
            IResourceBackgroundQueue.IListener listener)
Unload a single resource in the background.


unloadResourceGroup

long unloadResourceGroup(java.lang.String name,
                         IResourceBackgroundQueue.IListener listener)
Unloads a resource group in the background.


prepare

long prepare(java.lang.String resType,
             java.lang.String name,
             java.lang.String group,
             boolean isManual,
             IManualResourceLoader loader,
             INameValuePairList loadParams,
             IResourceBackgroundQueue.IListener listener)
Prepare a single resource in the background.


load

long load(java.lang.String resType,
          java.lang.String name,
          java.lang.String group,
          boolean isManual,
          IManualResourceLoader loader,
          INameValuePairList loadParams,
          IResourceBackgroundQueue.IListener listener)
Load a single resource in the background.


isProcessComplete

boolean isProcessComplete(long ticket)
Returns whether a previously queued process has completed or not.


_doNextQueuedBackgroundProcess

boolean _doNextQueuedBackgroundProcess()
Process a single queued background operation.


_initThread

void _initThread()
Initialise processing for a background thread.


_queueFireBackgroundPreparingComplete

void _queueFireBackgroundPreparingComplete(IResource res)
Queue the firing of the 'background preparing complete' event to a event.


_queueFireBackgroundLoadingComplete

void _queueFireBackgroundLoadingComplete(IResource res)
Queue the firing of the 'background loading complete' event to a event.


_fireOnFrameCallbacks

void _fireOnFrameCallbacks()
Fires all the queued events for background loaded resources.



Copyright © 2007 netAllied GmbH. All Rights Reserved.